/* ================================================
   VishwaPark Construction Monitor - Global Styles
   ================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-card2: #0f172a;
    --bg-input: #1e293b;
    --border: #334155;
    --border-light: #1e293b;

    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);

    --navbar-h: 70px;
    --green: #10b981;
    --red: #ef4444;
    --yellow: #f59e0b;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-h);
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 20px;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.nav-logo {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-links a {
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover { background: var(--bg-card); color: var(--text); }
.nav-links a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.user-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.user-info .user-name { font-size: 14px; font-weight: 600; }
.user-info .user-role { font-size: 11px; color: var(--text-muted); }

.btn-logout {
    width: 36px; height: 36px;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-logout:hover { background: var(--danger); color: #fff; }

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-top: var(--navbar-h);
    padding: 32px 24px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 4px;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: box-shadow 0.2s;
}

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

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== STAT CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card.blue::before { background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.stat-card.green::before { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card.yellow::before { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.stat-card.red::before { background: linear-gradient(90deg, var(--danger), #f87171); }

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

.stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card.blue .stat-value { color: #60a5fa; }
.stat-card.green .stat-value { color: #34d399; }
.stat-card.yellow .stat-value { color: #fbbf24; }
.stat-card.red .stat-value { color: #f87171; }

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.5);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.btn-success:hover { transform: translateY(-1px); color: #fff; }

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #fff;
}

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

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-ghost:hover { background: var(--bg-card); color: var(--text); }

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-control, .form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option { background: var(--bg-card); color: var(--text); }

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

.form-control::placeholder { color: var(--text-dim); }

textarea.form-control { resize: vertical; min-height: 100px; }

/* ==================== TABLE ==================== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: var(--bg-card2);
    position: sticky;
    top: 0;
    z-index: 5;
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: middle;
}

.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-completed { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge-progress  { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge-pending   { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-admin     { background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }
.badge-supervisor{ background: rgba(6,182,212,0.15);  color: #67e8f9; border: 1px solid rgba(6,182,212,0.3); }

/* ==================== DOTS ==================== */
.dot {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green  { background: var(--green);  box-shadow: 0 0 6px rgba(16,185,129,0.6); }
.dot-red    { background: var(--red);    box-shadow: 0 0 6px rgba(239,68,68,0.6); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 6px rgba(245,158,11,0.6); }

/* ==================== PROGRESS BAR ==================== */
.progress-bar-wrap {
    background: var(--bg-card2);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    width: 100%;
    min-width: 80px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
}

.progress-bar-fill.green  { background: linear-gradient(90deg, var(--success), #34d399); }
.progress-bar-fill.yellow { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.progress-bar-fill.red    { background: linear-gradient(90deg, var(--danger), #f87171); }

/* ==================== GRID TRACKER ==================== */
.tracker-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-height: 600px;
    overflow-y: auto;
}

.tracker-table {
    border-collapse: collapse;
    font-size: 12px;
    min-width: max-content;
}

.tracker-table th {
    background: var(--bg-card2);
    padding: 10px 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: center;
    font-size: 11px;
}

.tracker-table th.unit-col {
    position: sticky;
    left: 0;
    z-index: 20;
    min-width: 90px;
    text-align: left;
    padding-left: 12px;
}

.tracker-table td {
    border: 1px solid var(--border-light);
    text-align: center;
    padding: 6px 4px;
    vertical-align: middle;
}

.tracker-table td.unit-cell {
    position: sticky;
    left: 0;
    background: var(--bg-card2);
    z-index: 5;
    text-align: left;
    padding: 8px 12px;
    font-weight: 600;
    min-width: 90px;
}

.tracker-table td.task-cell.done    { background: rgba(16,185,129,0.2); }
.tracker-table td.task-cell.partial { background: rgba(245,158,11,0.15); }
.tracker-table td.task-cell.empty   { background: rgba(239,68,68,0.1); }

/* ==================== CHECKLIST ==================== */
.task-list { list-style: none; }

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}

.task-item:hover { border-color: var(--primary); }
.task-item.completed { opacity: 0.7; }
.task-item.completed .task-name { text-decoration: line-through; color: var(--text-muted); }
.task-item.locked { cursor: not-allowed; opacity: 0.6; }

.task-number {
    min-width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.task-item.completed .task-number {
    background: rgba(16,185,129,0.2);
    border-color: var(--success);
    color: var(--success);
}

.task-name { font-size: 14px; font-weight: 500; flex: 1; }

.task-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Custom checkbox */
.task-checkbox {
    width: 20px; height: 20px;
    min-width: 20px;
    accent-color: var(--success);
    cursor: pointer;
    margin-top: 3px;
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.15) 0%, transparent 60%),
                var(--bg);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.5s ease;
}

.login-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.login-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4px;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 36px;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }
.alert-danger   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.alert-info     { background: rgba(6,182,212,0.1);  border: 1px solid rgba(6,182,212,0.3);  color: #67e8f9; }
.alert-warning  { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }

/* ==================== CHARTS ==================== */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .charts-grid { grid-template-columns: 1fr; }
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.chart-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container {
    position: relative;
    height: 260px;
}

/* ==================== UNIT DETAIL ==================== */
.unit-header {
    background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(124,58,237,0.15));
    border: 1px solid rgba(37,99,235,0.3);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.unit-header-info h2 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.unit-meta { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.unit-progress-circle {
    position: relative;
    width: 90px; height: 90px;
    flex-shrink: 0;
}

.unit-progress-circle svg {
    transform: rotate(-90deg);
}

.unit-progress-circle .progress-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.3s ease;
}

.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

/* ==================== FILTER BAR ==================== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar .form-select {
    width: auto;
    min-width: 160px;
}

/* ==================== DIVIDER ==================== */
.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0 24px;
}

.section-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-divider-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-dim);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.fade-in { animation: fadeInUp 0.4s ease; }

/* ==================== LOADING SPINNER ==================== */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: var(--text-dim); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .nav-links { display: none; }
    .main-content { padding: 24px 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .unit-header { flex-direction: column; align-items: flex-start; }
    .login-card { padding: 32px 24px; }
    
    
    
    
    /* Responsive navbar tweaks to prevent horizontal scroll */
    .user-info { display: none !important; }
    .nav-brand { min-width: auto; }
    
    /* Hide steps indicator on mobile to save space */
    .steps { display: none !important; }
    
    /* Make space for the bottom navigation bar */
    body { padding-bottom: 70px; }
    
    /* Stack page headers and action buttons on mobile */
    .page-header.flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .page-header.flex-between .flex {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    /* Reduce padding on mobile cards for better space utilization */
    .card { padding: 16px; }
    .stat-card { padding: 16px; }
}

/* ==================== STICKY SIDEBAR ==================== */
@media (min-width: 769px) {
    .sticky-sidebar {
        position: sticky;
        top: calc(var(--navbar-h) + 20px);
        z-index: 10;
    }
}

/* ==================== MOBILE NAVIGATION ==================== */
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 60px;
        background: rgba(30, 41, 59, 0.95);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border);
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
        gap: 4px;
        flex: 1;
        text-align: center;
        justify-content: center;
        height: 100%;
        transition: all 0.2s;
    }
    .mobile-nav-link.active {
        color: #60a5fa;
    }
    .mobile-nav-link-icon {
        font-size: 18px;
    }
}

/* ==================== MISC UTILS ==================== */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-sm    { font-size: 13px; }
.font-bold  { font-weight: 700; }
.w-full     { width: 100%; }
.text-right { text-align: right; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media(max-width:768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ==================== SEARCH INPUT ==================== */
.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.search-box input {
    padding-left: 40px;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    z-index: 1;
}

/* ==================== STEP INDICATOR (Submit Form) ==================== */
.steps {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-card2);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    z-index: 1;
    flex-shrink: 0;
    transition: all 0.3s;
}

.step.active .step-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.done .step-num { background: var(--success); border-color: var(--success); color: #fff; }

.step-label {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
}

.step.active .step-label, .step.done .step-label { color: var(--text); }

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
}

.step.done .step-line { background: var(--success); }
