/* ==========================================================================
   GO USA JOBS - Main Stylesheet
   Theme: Federal Navy (#112E51) & Crimson Red (#C41230)
   Includes variables, components, layout grids, and the iPhone simulator frame.
   ========================================================================== */

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

:root {
    /* Color Tokens (HSL Tailored) */
    --primary-navy: hsl(212, 65%, 19%);      /* #112E51 */
    --primary-navy-light: hsl(212, 65%, 28%);
    --primary-navy-dark: hsl(212, 65%, 12%);
    --accent-red: hsl(350, 83%, 42%);        /* #C41230 */
    --accent-red-hover: hsl(350, 83%, 35%);
    --accent-gold: hsl(43, 67%, 52%);         /* #D4AF37 */
    --accent-gold-light: hsl(43, 100%, 94%);
    
    --bg-light: hsl(210, 20%, 98%);
    --bg-card: hsl(0, 0%, 100%);
    --text-dark: hsl(212, 40%, 12%);
    --text-muted: hsl(212, 15%, 45%);
    --border-light: hsl(212, 20%, 90%);
    --border-focus: hsl(350, 83%, 42%);
    
    --success: hsl(150, 60%, 40%);
    --warning: hsl(35, 90%, 50%);
    --info: hsl(200, 70%, 45%);
    
    /* Box Shadow Tokens */
    --shadow-sm: 0 2px 4px rgba(17, 46, 81, 0.05);
    --shadow-md: 0 4px 12px rgba(17, 46, 81, 0.08);
    --shadow-lg: 0 10px 25px rgba(17, 46, 81, 0.12);
    
    /* Font Families */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Dark Mode Tokens Override */
body.dark-theme {
    --bg-light: hsl(212, 35%, 10%);
    --bg-card: hsl(212, 30%, 15%);
    --text-dark: hsl(210, 30%, 95%);
    --text-muted: hsl(212, 15%, 70%);
    --border-light: hsl(212, 25%, 22%);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--accent-red-hover);
}

/* ==========================================================================
   Header and US Government Banner
   ========================================================================== */
.gov-banner {
    background-color: #f0f0f0;
    font-size: 12px;
    padding: 6px 5%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}
.gov-banner img {
    height: 14px;
    margin-right: 8px;
}
.gov-banner p {
    margin: 0;
}

.main-header {
    background-color: var(--primary-navy);
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    background-color: var(--accent-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    border: 2px solid var(--accent-gold);
}
.logo-text h1 {
    font-size: 22px;
    letter-spacing: -0.5px;
    color: white;
    margin: 0;
}
.logo-text p {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}
.nav-links a {
    color: white;
    font-weight: 500;
    font-size: 15px;
}
.nav-links a:hover {
    color: var(--accent-gold);
}
.nav-links a.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 4px;
}

.btn-header {
    background-color: var(--accent-red);
    color: white !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
}
.btn-header:hover {
    background-color: var(--accent-red-hover);
}

/* ==========================================================================
   Hero Landing / Dual-Field Search
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy-light) 100%);
    color: white;
    padding: 80px 5% 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(212, 175, 55, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-content h2 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Dual Search Bar */
.search-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}
.search-field {
    flex: 1;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
}
.search-field svg {
    color: var(--text-muted);
}
.search-field input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: var(--text-dark);
}
.btn-search {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(196, 18, 48, 0.3);
}
.btn-search:hover {
    background: var(--accent-red-hover);
    transform: translateY(-1px);
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    margin: -50px auto 50px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}
.stat-item {
    text-align: center;
    border-right: 1px solid var(--border-light);
}
.stat-item:last-child {
    border-right: none;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Category Grid
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 32px;
    color: var(--primary-navy);
}
body.dark-theme .section-title h2 {
    color: white;
}
.section-title p {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 8px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 5%;
}
.category-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-red);
}
.category-card.category-active {
    border-color: var(--primary-navy);
    background: linear-gradient(135deg, #e8edf4 0%, #f0f4ff 100%);
    box-shadow: 0 4px 16px rgba(17, 46, 81, 0.2);
    transform: translateY(-3px);
}
.category-card.category-active .category-icon {
    background: var(--primary-navy);
    color: white;
}
.category-card.category-active h3 {
    color: var(--primary-navy);
}
.category-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gold-light);
    color: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}
.category-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}
.category-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   Job Cards (Featured & Search Feed)
   ========================================================================== */
.job-feed {
    max-width: 800px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.job-card:hover {
    border-color: var(--primary-navy-light);
    box-shadow: var(--shadow-md);
}
.job-card-main {
    flex: 1;
}
.job-card-title {
    font-size: 18px;
    color: var(--primary-navy);
    margin-bottom: 4px;
}
body.dark-theme .job-card-title {
    color: white;
}
.job-card-agency {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.job-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.job-card-tags {
    display: flex;
    gap: 8px;
}
.hiring-path-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e2e8f0;
    color: #475569;
}
.hiring-path-tag.public { background: #dcfce7; color: #166534; }
.hiring-path-tag.veteran { background: #dbeafe; color: #1e40af; }
.hiring-path-tag.student { background: #fef9c3; color: #854d0e; }
.hiring-path-tag.internal { background: #f3e8ff; color: #6b21a8; }

.job-card-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.job-card-salary {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-red);
}
.job-card-date {
    font-size: 12px;
    color: var(--text-muted);
}
.btn-save-bookmark {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}
.btn-save-bookmark.saved {
    color: var(--accent-red);
}

/* ==========================================================================
   Cities Browser
   ========================================================================== */
.city-browser {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 5%;
}
.city-card {
    position: relative;
    border-radius: 12px;
    height: 150px;
    overflow: hidden;
    cursor: pointer;
}
.city-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17, 46, 81, 0.9) 0%, rgba(17, 46, 81, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}
.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.city-overlay h3 {
    font-size: 18px;
    margin-bottom: 2px;
}
.city-overlay p {
    font-size: 12px;
    opacity: 0.8;
}

/* ==========================================================================
   Hiring Process
   ========================================================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 5%;
}
.process-step {
    text-align: center;
    position: relative;
}
.process-step-num {
    width: 50px;
    height: 50px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 4px solid var(--accent-gold-light);
}
.process-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.process-step p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background: var(--primary-navy-dark);
    color: white;
    padding: 60px 5% 30px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 40px;
}
.footer-logo h3 {
    font-size: 22px;
    margin-bottom: 12px;
}
.footer-logo p {
    opacity: 0.7;
    margin-bottom: 16px;
    line-height: 1.6;
}
.footer-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--accent-gold);
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
}
.footer-column ul li a:hover {
    color: white;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.6;
}

/* ==========================================================================
   AUTHENTICATION VIEW (auth.php)
   ========================================================================== */
.auth-wrapper {
    max-width: 480px;
    margin: 80px auto;
    padding: 0 20px;
}
.auth-tabs {
    display: flex;
    background: #e2e8f0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.auth-tab {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 10px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
}
.auth-tab.active {
    background: var(--bg-card);
    color: var(--primary-navy);
}
.auth-body {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    border-top: none;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 15px;
}
.form-control:focus {
    border-color: var(--border-focus);
    outline: none;
    background: white;
}
.btn-auth-submit {
    width: 100%;
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.btn-auth-submit:hover {
    background: var(--accent-red-hover);
}
.sso-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}
.sso-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-light);
    z-index: 1;
}
.sso-divider span {
    background: var(--bg-card);
    padding: 0 15px;
    position: relative;
    z-index: 2;
    font-size: 13px;
    color: var(--text-muted);
}
.sso-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.btn-sso {
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-dark);
}
.btn-sso:hover {
    background: #edf2f7;
}

/* ==========================================================================
   IPHONE MOBILE APP SIMULATOR (app_simulator.php)
   ========================================================================== */
.simulator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}
/* iPhone 15 Pro Max Mockup Frame */
.iphone-frame {
    width: 430px;
    height: 880px;
    background: #111;
    border-radius: 56px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 4px solid #444;
}
.iphone-frame::before {
    /* Bezel shadow */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 12px solid #000;
    border-radius: 52px;
    pointer-events: none;
    z-index: 10;
}
/* Buttons on frame */
.iphone-volume-up, .iphone-volume-down, .iphone-power {
    position: absolute;
    background: #222;
    border-radius: 2px;
}
.iphone-volume-up { left: -6px; top: 180px; width: 6px; height: 50px; }
.iphone-volume-down { left: -6px; top: 240px; width: 6px; height: 50px; }
.iphone-power { right: -6px; top: 220px; width: 6px; height: 75px; }

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 30px;
    background: black;
    border-radius: 20px;
    z-index: 100;
}

/* Screen */
.iphone-screen {
    width: 100%;
    height: 100%;
    background: #f7fafc;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Status Bar */
.iphone-status-bar {
    height: 48px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: black;
    background: transparent;
    z-index: 99;
}
.iphone-status-bar.dark {
    color: white;
}
.iphone-status-icons {
    display: flex;
    gap: 6px;
}

/* Home Screen View inside mobile app */
.app-view {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px; /* nav padding */
}
.app-header {
    margin-bottom: 20px;
}
.app-header h1 {
    font-size: 24px;
    color: var(--primary-navy);
}

/* Bottom Tab Navigation for Mobile */
.app-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: white;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 12px; /* safe area offset */
    z-index: 90;
}
.app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}
.app-nav-item.active {
    color: var(--accent-red);
}
.app-nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

/* ==========================================================================
   DASHBOARD / ADMIN (admin.php)
   ========================================================================== */
.admin-container {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background: var(--primary-navy-dark);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.admin-logo h2 {
    font-size: 20px;
    color: white;
}
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(255,255,255,0.1);
    color: var(--accent-gold);
}

.admin-main {
    flex: 1;
    background: var(--bg-light);
    padding: 40px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.admin-header h1 {
    font-size: 28px;
}

/* Admin Stat Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.admin-stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}
.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.admin-stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.admin-stat-icon.red { background: #fee2e2; color: #dc2626; }
.admin-stat-icon.green { background: #dcfce7; color: #15803d; }
.admin-stat-icon.gold { background: #fef9c3; color: #a16207; }

.admin-stat-info h3 {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 4px;
}
.admin-stat-info p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Charts Grid */
.admin-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.admin-chart-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.admin-chart-card h3 {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Management Table */
.admin-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.admin-table-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}
.btn-admin-action {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.btn-admin-action:hover {
    background: var(--accent-red-hover);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    background: var(--bg-light);
    padding: 14px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}
.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.btn-table-action {
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 8px;
}
.btn-table-action.edit { color: var(--info); }
.btn-table-action.delete { color: var(--accent-red); }

/* Modal CSS */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-close {
    border: none; background: transparent; font-size: 20px; cursor: pointer;
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */
@media (max-width: 900px) {
    .category-grid, .city-browser, .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-item {
        border-right: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .search-container {
        flex-direction: column;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-charts-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .category-grid, .city-browser, .process-steps {
        grid-template-columns: 1fr;
    }
    .stats-bar {
        grid-template-columns: 1fr;
    }
}
