/* ============================================
   SMC Job Evaluation Workbench — Core Styles
   Modern SaaS aesthetic (ClickUp / Monday.com)
   ============================================ */

:root {
    --sidebar-width: 250px;
    --sidebar-bg: #1e293b;
    --topbar-height: 56px;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    background-color: #f8fafc;
    color: #334155;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1e293b;
}

/* Override Bootstrap primary */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg) !important;
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
}

#main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.sidebar-brand a {
    display: block;
}

.sidebar-link {
    color: #94a3b8 !important;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 2px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.sidebar-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
    color: #ffffff !important;
    background: var(--primary) !important;
}

.nav-header {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.sidebar-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Cards */
.card {
    border-radius: 0.75rem;
    transition: box-shadow 0.15s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tables */
.table {
    font-size: 0.8125rem;
}

.table th {
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    border-bottom-width: 2px;
}

.table td {
    vertical-align: middle;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.5rem;
    border-color: #e2e8f0;
    font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: #475569;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
}

/* Status badges */
.badge-draft { background-color: #e2e8f0; color: #475569; }
.badge-submitted { background-color: #dbeafe; color: #1d4ed8; }
.badge-under-review { background-color: #fef3c7; color: #92400e; }
.badge-approved { background-color: #dcfce7; color: #166534; }
.badge-returned { background-color: #fee2e2; color: #991b1b; }
.badge-superseded { background-color: #f1f5f9; color: #94a3b8; }
.badge-active { background-color: #dcfce7; color: #166534; }
.badge-archived { background-color: #f1f5f9; color: #64748b; }
.badge-void { background-color: #fee2e2; color: #991b1b; }

/* Alerts */
.alert {
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    border: none;
}

/* Auth page */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card .card {
    border-radius: 1rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 0;
    }
}

/* Page header actions */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    border-radius: 0.375rem;
    margin: 0 2px;
    font-size: 0.8125rem;
}
