/* ============================================
   ADMIN SYSTEM CSS - MODULAR SCALE + RELATIVE UNITS
   ============================================ */

:root {
    /* Base font size – fluid between 13px and 16px */
    font-size: clamp(13px, 0.8vw + 10px, 14px); 
    
    /* Typographic scale factor (minor third) */
    --scale: 1.2;
    
    /* Text sizes using the scale */
    --text-xs: calc(1rem / var(--scale) / var(--scale));
    --text-sm: calc(1rem / var(--scale));
    --text-base: 1rem;
    --text-md: calc(1rem * var(--scale));
    --text-lg: calc(1rem * var(--scale) * var(--scale));
    --text-xl: calc(1rem * var(--scale) * var(--scale) * var(--scale));
    --text-xxl: calc(1rem * var(--scale) * var(--scale) * var(--scale) * var(--scale));
    
    /* Spacing scale */
    --space-xs: calc(0.5rem / var(--scale));
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: calc(1rem * var(--scale));
    --space-xl: calc(1rem * var(--scale) * var(--scale));
    --space-xxl: calc(1rem * var(--scale) * var(--scale) * var(--scale));
    
    /* Colors */
    --primary-dark: #001f3f;
    --primary-teal: #008080;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --gray-dark: #343a40;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #333;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-teal) 100%);
    min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
    font-size: var(--text-xxl);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

h4 {
    font-size: var(--text-md);
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
}

small, .text-small {
    font-size: var(--text-sm);
}

/* ============================================
   CONTAINERS & LAYOUT
   ============================================ */
.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-md);
}

.dashboard-header {
    background: white;
    padding: var(--space-xl) var(--space-xxl);
    border-radius: calc(var(--space-md) * 0.75);
    margin-bottom: var(--space-xl);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 31, 63, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.dashboard-header h1 {
    color: var(--primary-dark);
    font-size: var(--text-xxl);
    margin: 0;
    font-weight: 700;
}

.quick-actions {
    background: white;
    border-radius: calc(var(--space-md) * 0.75);
    padding: var(--space-xl) var(--space-xxl);
    margin-bottom: var(--space-xl);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 31, 63, 0.1);
}

.quick-actions h2 {
    color: var(--primary-dark);
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-container {
    background: white;
    width: 100%;
    max-width: 28rem;
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2rem rgba(0, 31, 63, 0.25);
    overflow: hidden;
}

.login-header {
    background: var(--primary-dark);
    color: white;
    padding: var(--space-xl) var(--space-xxl);
    text-align: center;
}

.login-header h1 {
    font-size: var(--text-xxl);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.login-header p {
    opacity: 0.85;
    font-size: var(--text-sm);
}

.logo {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.login-form {
    padding: var(--space-xxl);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: var(--space-md) var(--space-lg);
    border-radius: 0.375rem;
    margin-bottom: var(--space-lg);
    border-left: 0.25rem solid var(--danger);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.error-message:before {
    content: "⚠️";
    font-size: var(--text-lg);
}

.login-footer {
    text-align: center;
    padding: var(--space-lg) var(--space-xxl);
    background: var(--gray-light);
    border-top: 1px solid var(--border-color);
    color: var(--gray);
    font-size: var(--text-sm);
}

.login-footer a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.security-notice {
    background: #e8f4f8;
    border: 1px solid #b6e0fe;
    border-radius: 0.375rem;
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-lg);
    font-size: var(--text-xs);
    color: #0066cc;
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: var(--space-lg) var(--space-xl);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 31, 63, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 31, 63, 0.15);
}

.stat-card h3 {
    color: var(--primary-dark);
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.stat-card h3:before {
    font-size: var(--text-xl);
}

.stat-numbers {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: var(--space-sm);
}

.stat-main {
    font-size: var(--text-xxl);
    font-weight: 700;
    color: var(--primary-teal);
    line-height: 1.2;
}

.stat-details {
    font-size: var(--text-sm);
    color: var(--gray);
}

.stat-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--gray-light);
}

.stat-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Icons for cards */
.branches-icon:before { content: "🏢"; }
.staff-icon:before { content: "👥"; }
.projects-icon:before { content: "📋"; }
.students-icon:before { content: "🎓"; }
.attendance-icon:before { content: "✅"; }
.activity-icon:before { content: "📊"; }

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: calc(var(--space-xs) / 1.5);
    font-weight: 600;
    font-size: var(--text-sm);
    color: #495057;
}

.form-control {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background: white;
    line-height: 1.5;
    min-height: 2.75rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 128, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
    background-size: 1.2rem;
    padding-right: 2rem;
}

/* Filter row */
.filter-row {
    display: flex;
    gap: var(--space-md);
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.filter-group {
    flex: 1;
    min-width: 12rem;
}

.filter-info {
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    color: var(--gray);
}

.filter-info a {
    margin-left: var(--space-sm);
    color: var(--primary-teal);
    text-decoration: none;
}

.filter-info a:hover {
    text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-login {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.5;
    min-height: 2.75rem;
    text-align: center;
}

.btn-login:hover {
    background: #006666;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.625rem rgba(0, 128, 128, 0.2);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gray);
}

.btn-secondary:hover {
    background: #5a6268;
}

.action-btn {
    display: inline-block;
    padding: calc(var(--space-xs) / 1.5) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    text-decoration: none;
    color: white;
    min-height: 2rem;
    line-height: 1.5;
    text-align: center;
}

.btn-activate,
.btn-reactivate {
    background: var(--success);
}

.btn-deactivate {
    background: var(--danger);
}

.btn-edit {
    background: #17a2b8;
}

.form-button-group {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.form-button-group .btn-login {
    flex: 1;
}

/* ============================================
   TABLES
   ============================================ */
.attendance-matrix-section {
    margin-bottom: var(--space-xl);
}

.attendance-matrix {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 31, 63, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    font-size: var(--text-sm);
}

.attendance-matrix th,
.attendance-matrix td {
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    border: 1px solid var(--border-color);
    min-width: 4.5rem;
}

.attendance-matrix thead th {
    background: var(--primary-dark);
    color: white;
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.attendance-matrix tbody td:first-child {
    font-weight: 600;
    background: var(--gray-light);
    color: var(--primary-dark);
    text-align: left;
    padding-left: var(--space-md);
    font-size: var(--text-sm);
    border-left: 0.25rem solid var(--primary-teal);
    min-width: 10rem;
}

.attendance-matrix td small {
    font-size: 0.7rem;
    color: var(--gray);
    display: block;
    line-height: 1.3;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 31, 63, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.activity-table th {
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-light);
    color: var(--primary-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    font-size: var(--text-sm);
}

.activity-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--gray-light);
    font-size: var(--text-sm);
}

.activity-table tr:hover {
    background: var(--gray-light);
}

/* Color-coded cells */
.cell-excellent {
    background: #d4edda;
    color: #155724;
    font-weight: 600;
}
.cell-good {
    background: #d1ecf1;
    color: #0c5460;
}
.cell-warning {
    background: #fff3cd;
    color: #856404;
    font-weight: 600;
}
.cell-critical {
    background: #f8d7da;
    color: #721c24;
    font-weight: 700;
}
.cell-empty {
    background: var(--gray-light);
    color: var(--gray);
    font-style: italic;
}
.cell-ratio-perfect {
    background: #d4edda;
    color: #155724;
    font-weight: 700;
}
.cell-ratio-warning {
    background: #fff3cd;
    color: #856404;
    font-weight: 700;
}
.cell-ratio-critical {
    background: #f8d7da;
    color: #721c24;
    font-weight: 700;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: var(--text-xs);
    font-weight: 600;
}
.status-active {
    background: #d4edda;
    color: #155724;
}
.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   PROJECT BADGES
   ============================================ */
.project-badge {
    background: #6f42c1;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 0.75rem;
    font-size: var(--text-xs);
    font-weight: 600;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-controls {
    text-align: center;
    margin: var(--space-xl) 0;
}

.pagination-controls a,
.pagination-controls span {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    margin: 0 0.125rem;
    border-radius: 0.25rem;
    font-size: var(--text-sm);
    text-decoration: none;
    background: var(--gray-light);
    color: var(--primary-dark);
    border: 1px solid var(--border-color);
}

.pagination-controls a:hover {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

/* ============================================
   MESSAGE CARDS
   ============================================ */
.message-success,
.message-error {
    padding: var(--space-md) var(--space-lg);
    border-radius: 0.375rem;
    margin-bottom: var(--space-lg);
    font-size: var(--text-md);
    border-left: 0.25rem solid transparent;
}
.message-success {
    background: #d4edda;
    color: #155724;
    border-left-color: var(--success);
}
.message-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: var(--danger);
}
.message-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ============================================
   ADMIN SHELL LAYOUT
   ============================================ */
.admin-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}
.admin-header {
    background: var(--primary-dark);
    color: white;
    padding: var(--space-lg);
}
.admin-nav {
    background: #003f5c;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    gap: var(--space-lg);
}
.admin-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
}
.admin-nav a:hover {
    text-decoration: underline;
}
.admin-main {
    flex: 1;
    background: #f4f6f8;
}
.admin-frame {
    width: 100%;
    height: 100%;
    border: none;
}
.admin-footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: var(--space-sm);
    font-size: var(--text-sm);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .filter-row {
        flex-wrap: wrap;
    }
    .filter-group {
        min-width: 10rem;
    }
    .attendance-matrix th,
    .attendance-matrix td {
        padding: var(--space-xs) var(--space-sm);
        min-width: 3.5rem;
    }
    .attendance-matrix tbody td:first-child {
        min-width: 8rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header,
    .quick-actions,
    .login-form,
    .login-header {
        padding: var(--space-md);
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .filter-row {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .filter-group {
        width: 100%;
        min-width: auto;
    }
    .attendance-matrix-section {
        overflow-x: auto;
    }
    .attendance-matrix {
        font-size: var(--text-xs);
    }
    .attendance-matrix th,
    .attendance-matrix td {
        min-width: 3rem;
    }
    .form-button-group {
        flex-direction: column;
    }
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    .user-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-container {
        border-radius: 0.5rem;
    }
    .login-footer {
        padding: var(--space-md);
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary-teal: #0066cc;
        --primary-dark: #000000;
    }
    .btn-login,
    .action-btn {
        border: 0.125rem solid currentColor;
    }
}


/* TEMPORARY STAFF MANAGEMENT STYLES - WILL MOVE TO style.css */
        
        /* WhatsApp-specific styles */
        .whatsapp-badge {
            background: #25D366;
            color: white;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        
        .whatsapp-badge:before {
            content: "💬";
        }
        
        .no-whatsapp {
            color: #dc3545;
            font-size: 12px;
        }
        
        /* Project count badge */
        .project-badge {
            background: #6f42c1;
            color: white;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }
        
        /* Staff details grid */
        .staff-details-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }
        
        .detail-item {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #008080;
        }
        
        .detail-label {
            font-size: 12px;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 5px;
        }
        
        .detail-value {
            font-size: 16px;
            font-weight: 600;
            color: #001f3f;
        }
        
        /* WhatsApp generator button */
        .whatsapp-generator {
            background: #25D366;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            font-size: 14px;
        }
        
        .whatsapp-generator:hover {
            background: #1da851;
            color: white;
        }
        
        /* Phone number formatting */
        .phone-input-group {
            position: relative;
        }
        
        .country-code {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #666;
            font-weight: 500;
        }
        
        .phone-input {
            padding-left: 45px;
        }
        
        /* Compact table actions */
        .compact-actions {
            display: flex;
            gap: 5px;
        }
        
        .compact-btn {
            padding: 4px 8px;
            font-size: 11px;
            border-radius: 4px;
            text-decoration: none;
            color: white;
            font-weight: 600;
        }
        
        .btn-view { background: #17a2b8; }
        .btn-projects { background: #6f42c1; }
        .btn-whatsapp { background: #25D366; }
        .btn-edit { background: #fd7e14; }
        .btn-deactivate { background: #dc3545; }
        .btn-reactivate { background: #28a745; }
        
        /* Advanced filters */
        .advanced-filters {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid #e9ecef;
        }
        
        .filter-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }
        
        
        /* =========================================
   STAFF & BENEFICIARIES UNIFIED STYLE
   ========================================= */

/* 1. Advanced Filters Container */
.advanced-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

/* 2. Filter Grid Layout */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* 3. Compact Actions (Buttons) */
.compact-actions {
    display: flex;
    gap: 5px; /* Spacing between buttons */
    flex-direction: column; /* Stacks them vertically */
}

.compact-btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    transition: opacity 0.2s;
}

.compact-btn:hover {
    opacity: 0.9;
}

/* Button Variants */
.btn-view { background: #17a2b8; }
.btn-projects { background: #6f42c1; }
.btn-whatsapp { background: #25D366; }
.btn-edit { background: #fd7e14; }
.btn-deactivate { background: #dc3545; }
.btn-reactivate { background: #28a745; }

/* 4. Project Badge */
.project-badge {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* 5. Table Header Color (Dark Blue) */
.activity-table thead {
    background-color: #001f3f; /* Matches --primary-dark */
    color: white;
}

.activity-table th {
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
}

.activity-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 14px;
}

.activity-table tr:hover {
    background-color: #f8f9fa;
}

/* 6. Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}
.navbar {
            background: var(--white);
            border-bottom: var(--border-light);
            padding: var(--space-sm) var(--space-lg);
            border-radius: var(--radius-md); /* Rounded corners */
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: var(--space-xs);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
.menu-item {
            padding: var(--space-xs) var(--space-md);
            margin: 0;
            border: 1px solid var(--border-color); /* Outline style */
            background: transparent;
            color: white;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: var(--text-base);
            font-weight: 500;
            min-height: 2.5rem;
            white-space: nowrap;
        }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.p-1 { padding: var(--space-sm); }
.p-2 { padding: var(--space-md); }
.p-3 { padding: var(--space-lg); }