/* =============================================
   Stairs Digital - Área do Cliente
   Design System v2 - Aggressive & Modern
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --accent: #7C3AED;
    --accent-light: #8B5CF6;
    --navy: #0F172A;
    --navy-light: #1E293B;
    --success: #10B981;
    --success-dark: #059669;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;

    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(124,58,237,0.05) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-dark) 0%, #6D28D9 100%);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(37,99,235,0.15), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 40px -5px rgba(37,99,235,0.2), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 30px rgba(37,99,235,0.15);

    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0;
    color: #fff;
}

.navbar-brand:hover { color: #fff; }

.navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--gray-400);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-link.active {
    color: #fff;
    background: rgba(37,99,235,0.2);
}

.nav-dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    padding: 0.5rem;
    z-index: 200;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown.open .dropdown-menu { display: block; }

.dropdown-item {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--gray-400);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.user-name {
    color: var(--gray-400);
    font-size: 0.8125rem;
    font-weight: 500;
}

.logout-link { color: var(--gray-500) !important; }
.logout-link:hover { color: var(--danger) !important; }

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== MAIN ===== */
.main-content {
    flex: 1;
    padding: 2.5rem 0;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.page-header h1 small {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-left: 0.75rem;
    letter-spacing: 0;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    list-style: none;
    font-weight: 500;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: '→'; margin-right: 0.5rem; color: var(--gray-300); }

/* ===== CARDS ===== */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2, .card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.card-body { padding: 1.75rem; }

.card-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before { opacity: 1; }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    flex-shrink: 0;
}

.stat-icon.primary { background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1)); color: var(--primary); }
.stat-icon.success { background: rgba(16,185,129,0.1); color: var(--success); }
.stat-icon.warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.stat-icon.danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.stat-icon.info { background: rgba(6,182,212,0.1); color: var(--info); }

.stat-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-content p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
}

.project-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    padding: 1.75rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card:hover::after { transform: scaleX(1); }

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.project-card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.project-card-header h3 a { color: inherit; }
.project-card-header h3 a:hover { color: var(--primary); }

.project-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    flex: 1;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
    font-weight: 500;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-primary { background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1)); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.1); color: var(--success-dark); }
.badge-warning { background: rgba(245,158,11,0.1); color: #B45309; }
.badge-danger { background: rgba(239,68,68,0.1); color: #DC2626; }
.badge-info { background: rgba(6,182,212,0.1); color: #0891B2; }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.btn-primary:hover {
    background: var(--gradient-hover);
    box-shadow: 0 4px 16px rgba(37,99,235,0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.btn-success:hover {
    background: var(--success-dark);
    transform: translateY(-1px);
    color: #fff;
}

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; transform: translateY(-1px); color: #fff; }

.btn-outline {
    background: #fff;
    border-color: var(--gray-200);
    color: var(--gray-700);
}
.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm { padding: 0.4375rem 0.875rem; font-size: 0.8125rem; border-radius: 8px; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-100);
    background: var(--gray-50);
}

.table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: var(--gradient-subtle); }

.table .actions { display: flex; gap: 0.5rem; }

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.6875rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), var(--gray-200));
}

.timeline-item {
    position: relative;
    padding-bottom: 1.75rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -1.875rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 3px solid #fff;
    top: 0.375rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

.timeline-item.completed .timeline-dot {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
}

.timeline-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.timeline-content h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.timeline-content p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.5rem; }

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--gray-800);
    background: #fff;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.form-control::placeholder { color: var(--gray-400); }

select.form-control { cursor: pointer; }
textarea.form-control { min-height: 120px; resize: vertical; }

.form-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.3s, transform 0.3s;
    border-left: 4px solid;
}

.alert-success { background: rgba(16,185,129,0.06); color: #065F46; border-left-color: var(--success); }
.alert-danger { background: rgba(239,68,68,0.06); color: #991B1B; border-left-color: var(--danger); }
.alert-warning { background: rgba(245,158,11,0.06); color: #92400E; border-left-color: var(--warning); }
.alert-info { background: rgba(6,182,212,0.06); color: #155E75; border-left-color: var(--info); }

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    padding: 0 0.25rem;
    transition: var(--transition);
}

.alert-close:hover { opacity: 1; }

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.open { display: flex; }

.modal-dialog {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-close {
    background: var(--gray-100);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

.modal-close:hover { background: var(--gray-200); color: var(--gray-700); }

.modal-body { padding: 1.75rem; }

.modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ===== LOGIN ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    pointer-events: none;
}

.login-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1.5rem;
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.login-logo p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.login-card .form-label { color: var(--gray-400); }

.login-card .form-control {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

.login-card .form-control::placeholder { color: var(--gray-500); }

.login-card .alert { border-radius: var(--radius); }

/* ===== LINKS GRID ===== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.link-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.link-card i {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.link-card-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.link-card-content p {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ===== DOCUMENTS ===== */
.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: var(--gradient-subtle); }

.doc-info { display: flex; align-items: center; gap: 1rem; }

.doc-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-subtle);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.125rem;
}

.doc-details h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

.doc-details p {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.empty-state p { font-size: 0.875rem; }

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ===== DETAIL GRID ===== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
}

.detail-sidebar .card + .card { margin-top: 1.5rem; }

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.info-row:last-child { border-bottom: none; }

.info-label { color: var(--gray-500); font-weight: 500; }
.info-value { font-weight: 600; color: var(--gray-800); }

/* ===== TABS ===== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: 1.5rem;
}

.tab-link {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.tab-link:hover { color: var(--gray-700); }
.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ===== PROGRESS ===== */
.progress-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 1rem 1.5rem;
        border-top: 1px solid rgba(255,255,255,0.06);
        box-shadow: var(--shadow-xl);
    }

    .navbar-menu.open { display: flex; }
    .navbar-toggle { display: block; }

    .navbar-user {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.03);
    }

    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header h1 { font-size: 1.5rem; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .login-card { padding: 2rem 1.5rem; }
    .container { padding: 0 1rem; }
}
