/* 
 * POLISHED DESIGN SYSTEM (Industrial Light) 
 * Unified CSS tokens and components for PCH-16
 */

:root {
    /* HSL Design Tokens */
    --p-bg: hsl(210 40% 98%);
    --p-card-bg: #ffffff;
    --p-border: hsl(214 32% 91%);
    --p-border-hover: hsl(214 32% 85%);
    --p-text-main: hsl(222 47% 11%);
    --p-text-muted: hsl(215 16% 47%);
    --p-accent: hsl(221 83% 53%);
    --p-accent-dark: hsl(222 47% 11%);
    --p-success: hsl(142 71% 45%);
    --p-warning: hsl(38 92% 50%);
    --p-danger: hsl(0 84% 60%);
    --p-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --p-radius: 12px;
}

/* Base Body Styles for Light Sections */
.polished-section {
    background-color: var(--p-bg);
    color: var(--p-text-main);
    font-family: 'Inter', sans-serif;
}

/* Polished Table System */
.table-card-polished {
    background: var(--p-card-bg);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    box-shadow: var(--p-shadow);
    overflow: hidden;
    margin-bottom: 24px;
    animation: fadeInSlide 0.4s ease-out;
}

.table-wrapper-polished {
    width: 100%;
    overflow-x: auto;
}

.polished-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: var(--p-text-main);
}

.polished-table th {
    background: #f8fafc;
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--p-border);
    white-space: nowrap;
}

.polished-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--p-border);
}

.polished-table tr:last-child td {
    border-bottom: none;
}

.polished-table tr:hover td {
    background-color: #f1f5f9;
}

/* Polished Tab Navigation */
.tab-header-polished {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--p-border);
    overflow-x: auto;
}

.tab-btn-polished {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--p-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn-polished:hover {
    background: #f1f5f9;
    color: var(--p-accent);
}

.tab-btn-polished.active {
    background: var(--p-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Modals */
.modal-polished-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.modal-polished-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 16px;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--p-border);
}

/* Icons and Badges */
.badge-polished {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-blue { background: #eff6ff; color: #2563eb; }
.badge-green { background: #f0fdf4; color: #16a34a; }
.badge-red { background: #fef2f2; color: #dc2626; }
.badge-yellow { background: #fffbeb; color: #ca8a04; }

/* Animations */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
