/* GeoSurvey ERP System Core Styles - Standalone Local & Django Compatible */
:root {
    --primary-green: #006837;
    --primary-dark: #004d28;
    --accent-gold: #d4af37;
    --bg-light: #f8fafc;
    --surface-white: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --status-pending: #f59e0b;
    --status-approved: #10b981;
    --status-rejected: #ef4444;
    --sidebar-width: 260px;
    --topbar-height: 70px;
}

body.dark-mode {
    --bg-light: #0f172a;
    --surface-white: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-green);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-brand {
    padding: 20px;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 3px solid var(--accent-gold);
}

.brand-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-gold), #b89128);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.brand-text h2 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.brand-text span {
    font-size: 10px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.nav-menu {
    list-style: none;
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

.nav-item a:hover, .nav-item.active a {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--accent-gold);
    border-left: 4px solid var(--accent-gold);
}

.nav-item a i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 14px 20px;
    background-color: rgba(0, 0, 0, 0.18);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Main Layout */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background-color: var(--surface-white);
    height: var(--topbar-height);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 90;
}

.global-search {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 16px;
    width: 380px;
}

.global-search input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 10px;
    width: 100%;
    font-size: 13.5px;
    color: var(--text-main);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    padding: 2px 6px;
    font-weight: 700;
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.avatar {
    width: 38px;
    height: 38px;
    background: var(--primary-green);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--accent-gold);
    font-size: 14px;
}

.content-area {
    padding: 30px;
    margin-top: var(--topbar-height);
    flex: 1;
}

/* UI Components */
.btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13.5px;
}

.btn-primary { background-color: var(--primary-green); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-secondary { background: var(--bg-light); border: 1px solid var(--border-color); color: var(--text-main); }

.badge { padding: 4px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600; display: inline-block; }
.badge-approved { background-color: rgba(16, 185, 129, 0.15); color: var(--status-approved); }
.badge-pending { background-color: rgba(245, 158, 11, 0.15); color: var(--status-pending); }
.badge-rejected { background-color: rgba(239, 68, 68, 0.15); color: var(--status-rejected); }

.card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.table-container {
    background: var(--surface-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 12px 18px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 14px 18px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.metric-card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-info h3 { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px; }
.metric-info p { font-size: 22px; font-weight: 700; color: var(--text-main); }
.metric-icon { width: 44px; height: 44px; border-radius: 8px; background: rgba(0, 104, 55, 0.1); color: var(--primary-green); display: flex; align-items: center; justify-content: center; font-size: 18px; }

.footer {
    padding: 20px 30px;
    background-color: var(--surface-white);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

#map { width: 100%; height: 500px; border-radius: 8px; border: 1px solid var(--border-color); }

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
    margin-right: 16px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 99;
}

/* Responsive layout */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .topbar {
        left: 0;
        padding: 0 16px;
    }

    .menu-toggle {
        display: block;
    }

    .global-search {
        width: auto;
        flex: 1;
        min-width: 0;
        margin-right: 12px;
    }

    .content-area {
        padding: 18px;
    }

    .footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 16px;
    }
}

@media (max-width: 560px) {
    .profile-dropdown > div:last-child { display: none; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
}

/* Standalone auth (login) page */
.auth-page {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-green));
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface-white);
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-brand .brand-logo-icon { color: white; }
.auth-brand h2 { font-size: 18px; font-weight: 700; color: var(--text-main); }
.auth-brand span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.auth-card h1 { font-size: 19px; font-weight: 700; margin-bottom: 6px; color: var(--text-main); }
.auth-card > p { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.form-group input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--text-main);
    background: var(--bg-light);
    outline: none;
}
.form-group input:focus { border-color: var(--primary-green); }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.auth-row a { color: var(--primary-green); text-decoration: none; font-weight: 600; }
.auth-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

.auth-footer-note {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.demo-credentials-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 18px;
    font-size: 12px;
    color: var(--text-muted);
}
.demo-credentials-box i { color: var(--primary-green); margin-top: 2px; }
.demo-credentials-box strong { display: block; color: var(--text-main); font-size: 12.5px; margin-bottom: 3px; }
.demo-credentials-box p { margin: 2px 0; line-height: 1.5; }
.demo-credentials-box code {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11.5px;
    color: var(--primary-green);
    font-weight: 600;
}

/* Document version history (Survey Plans) */
.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
}
.version-item:last-child { margin-bottom: 0; }
.version-item.current { border-color: var(--primary-green); background: rgba(0,104,55,0.04); }
.version-item h5 { font-size: 12.5px; font-weight: 700; color: var(--text-main); margin-bottom: 3px; }
.version-item p { font-size: 11.5px; color: var(--text-muted); }

/* =========================================================
   PUBLIC WEBSITE STYLES
   ========================================================= */
.pub-body { display: block; overflow-x: hidden; }

.pub-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 6%;
    background: rgba(15, 23, 42, 0.0);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.pub-topbar.scrolled, .pub-topbar.solid {
    background: var(--surface-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 10px 6%;
}

.pub-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.pub-brand h2 { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0.3px; }
.pub-brand span { font-size: 10px; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1.5px; display: block; }
.pub-topbar.scrolled .pub-brand h2, .pub-topbar.solid .pub-brand h2 { color: var(--text-main); }

.pub-nav { display: flex; align-items: center; gap: 32px; }
.pub-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.pub-topbar.scrolled .pub-nav a, .pub-topbar.solid .pub-nav a { color: var(--text-main); }
.pub-nav a:hover, .pub-nav a.active { color: var(--accent-gold); }

.pub-nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.7); color: #fff; background: transparent; padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pub-topbar.scrolled .btn-outline-light, .pub-topbar.solid .btn-outline-light { border-color: var(--primary-green); color: var(--primary-green); }
.btn-gold { background: var(--accent-gold); color: var(--primary-dark); padding: 10px 20px; border-radius: 6px; font-weight: 700; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; }
.btn-gold:hover { background: #c39d2e; }

.pub-mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.pub-topbar.scrolled .pub-mobile-toggle, .pub-topbar.solid .pub-mobile-toggle { color: var(--text-main); }

/* Hero */
.pub-hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    background:
        linear-gradient(120deg, rgba(0,77,40,0.92), rgba(0,104,55,0.82) 55%, rgba(0,77,40,0.6)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 40px);
    overflow: hidden;
    padding: 100px 6% 60px;
}
.pub-hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(212,175,55,0.18), transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(212,175,55,0.12), transparent 40%);
    pointer-events: none;
}
.pub-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; max-width: 1280px; margin: 0 auto; width: 100%; }
.pub-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(212,175,55,0.15); border: 1px solid rgba(212,175,55,0.4); color: var(--accent-gold); padding: 6px 14px; border-radius: 20px; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 22px; }
.pub-hero h1 { font-size: 48px; font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.5px; }
.pub-hero h1 span { color: var(--accent-gold); }
.pub-hero p.lead { font-size: 16.5px; color: rgba(255,255,255,0.85); line-height: 1.7; max-width: 520px; margin-bottom: 32px; }
.pub-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.btn-hero-primary { background: var(--accent-gold); color: var(--primary-dark); padding: 15px 26px; border-radius: 7px; font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 25px rgba(212,175,55,0.25); }
.btn-hero-secondary { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; padding: 15px 26px; border-radius: 7px; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.1); }

.pub-hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.pub-hero-stats .stat-item h3 { font-size: 28px; font-weight: 700; color: #fff; }
.pub-hero-stats .stat-item span { font-size: 12px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.5px; }

/* Hero visual card (illustrative, no real photo needed) */
.pub-hero-visual { position: relative; z-index: 2; }
.hero-map-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: 16px; padding: 22px; backdrop-filter: blur(6px); }
.hero-map-grid { height: 300px; border-radius: 10px; position: relative; overflow: hidden; background: linear-gradient(160deg, #0a3d24, #0f5c37 60%, #14713f); }
.hero-map-grid svg { width: 100%; height: 100%; }
.hero-float-card { position: absolute; background: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.25); display: flex; align-items: center; gap: 10px; }
.hero-float-card.card-a { top: -18px; left: -18px; }
.hero-float-card.card-b { bottom: -18px; right: -18px; }
.hero-float-card i { color: var(--primary-green); font-size: 16px; }
.hero-float-card .ft-title { font-size: 12px; font-weight: 700; color: var(--text-main); }
.hero-float-card .ft-sub { font-size: 10.5px; color: var(--text-muted); }

/* Sections */
.pub-section { padding: 90px 6%; max-width: 1280px; margin: 0 auto; }
.pub-section.tight { padding-top: 60px; padding-bottom: 60px; }
.pub-section-alt { background: var(--bg-light); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-tag { display: inline-block; color: var(--primary-green); font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; background: rgba(0,104,55,0.08); padding: 6px 14px; border-radius: 20px; margin-bottom: 14px; }
.section-header h2 { font-size: 32px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; letter-spacing: -0.3px; }
.section-header p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.service-card { background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 12px; padding: 28px; transition: transform 0.2s ease, box-shadow 0.2s ease; text-decoration: none; display: block; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); border-color: var(--primary-green); }
.service-icon { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg, var(--primary-green), var(--primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.service-card h3 { font-size: 16.5px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.service-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); border-top: 1px solid var(--border-color); padding-top: 14px; margin-bottom: 14px; }
.service-meta strong { color: var(--text-main); }
.service-card .btn-link { color: var(--primary-green); font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }

/* Process timeline */
.process-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.process-step { text-align: center; position: relative; padding: 0 12px; }
.process-step .ps-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-white); border: 2px solid var(--primary-green); color: var(--primary-green); display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 16px; position: relative; z-index: 2; }
.process-step h4 { font-size: 13.5px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.process-step p { font-size: 11.5px; color: var(--text-muted); }
.process-row::before { content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--border-color) 0 8px, transparent 8px 14px); z-index: 1; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 4/3; display: flex; align-items: flex-end; padding: 16px; color: #fff; }
.gallery-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.65), rgba(0,0,0,0.05)); z-index: 1; }
.gallery-item .gi-content { position: relative; z-index: 2; }
.gallery-item .gi-content span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-gold); font-weight: 700; }
.gallery-item .gi-content h4 { font-size: 14.5px; font-weight: 700; margin-top: 4px; }
.gallery-item.g1 { background: linear-gradient(160deg, #0a3d24, #14713f); grid-column: span 2; }
.gallery-item.g2 { background: linear-gradient(160deg, #1e293b, #334155); }
.gallery-item.g3 { background: linear-gradient(160deg, #7a5c17, #b89128); }
.gallery-item.g4 { background: linear-gradient(160deg, #14532d, #166534); }
.gallery-item.g5 { background: linear-gradient(160deg, #0f172a, #1e3a5f); grid-column: span 2; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.testimonial-card { background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 12px; padding: 26px; }
.testimonial-stars { color: var(--accent-gold); font-size: 13px; margin-bottom: 14px; }
.testimonial-card p { font-size: 13.5px; color: var(--text-main); line-height: 1.7; margin-bottom: 18px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-green); color: var(--accent-gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.testimonial-person h5 { font-size: 13px; font-weight: 700; color: var(--text-main); }
.testimonial-person span { font-size: 11.5px; color: var(--text-muted); }

/* Stats band */
.stats-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary-green)); padding: 50px 6%; }
.stats-band-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-band-grid .stat-item h3 { color: #fff; font-size: 32px; font-weight: 700; }
.stats-band-grid .stat-item span { color: rgba(255,255,255,0.75); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* CTA band */
.cta-band { background: var(--primary-dark); border-radius: 16px; padding: 50px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin: 0 6% 90px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(212,175,55,0.18), transparent 45%); }
.cta-band h2 { color: #fff; font-size: 26px; font-weight: 700; position: relative; z-index: 2; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.75); font-size: 13.5px; position: relative; z-index: 2; }
.cta-band-actions { position: relative; z-index: 2; display: flex; gap: 12px; }

/* Public footer */
.pub-footer { background: #06170e; color: rgba(255,255,255,0.7); padding: 70px 6% 26px; }
.pub-footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pub-footer h4 { color: #fff; font-size: 13.5px; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.5px; }
.pub-footer p, .pub-footer li { font-size: 13px; line-height: 1.9; }
.pub-footer ul { list-style: none; }
.pub-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.pub-footer a:hover { color: var(--accent-gold); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--accent-gold); border-color: var(--accent-gold); color: var(--primary-dark); }
.pub-footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 22px; display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 10px; }

/* Contact / quote form on public site */
.pub-form-card { background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 14px; padding: 34px; box-shadow: 0 20px 45px rgba(0,0,0,0.06); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group select, .form-group textarea {
    width: 100%; padding: 11px 12px; border: 1px solid var(--border-color); border-radius: 6px;
    font-size: 13.5px; color: var(--text-main); background: var(--bg-light); outline: none; font-family: inherit; resize: vertical;
}
.form-group select:focus, .form-group textarea:focus { border-color: var(--primary-green); }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 16px; }
.contact-info-icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(0,104,55,0.08); color: var(--primary-green); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-info-item h5 { font-size: 13.5px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.contact-info-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.map-placeholder { height: 260px; border-radius: 12px; background: linear-gradient(135deg, #0a3d24, #14713f); position: relative; overflow: hidden; margin-top: 26px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 12.5px; }

/* Value / why-choose-us icons row */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.value-item { text-align: center; }
.value-icon { width: 60px; height: 60px; border-radius: 14px; background: rgba(212,175,55,0.12); color: var(--accent-gold); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 16px; }
.value-item h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.value-item p { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* Team cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.team-card { background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; text-align: center; }
.team-photo { height: 160px; background: linear-gradient(160deg, #1e293b, #334155); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.85); font-size: 40px; }
.team-card .tc-body { padding: 18px; }
.team-card h4 { font-size: 14px; font-weight: 700; color: var(--text-main); }
.team-card span { font-size: 11.5px; color: var(--primary-green); font-weight: 600; }

@media (max-width: 900px) {
    .pub-nav, .pub-nav-actions .btn-outline-light { display: none; }
    .pub-mobile-toggle { display: block; }
    .pub-hero-grid { grid-template-columns: 1fr; }
    .pub-hero h1 { font-size: 34px; }
    .process-row { grid-template-columns: 1fr 1fr; gap: 26px; }
    .process-row::before { display: none; }
    .stats-band-grid { grid-template-columns: 1fr 1fr; }
    .pub-footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item.g1, .gallery-item.g5 { grid-column: span 2; }
    .form-row-2 { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
    .services-grid, .team-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.g1, .gallery-item.g5 { grid-column: span 1; }
    .pub-footer-grid { grid-template-columns: 1fr; }
    .stats-band-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   PORTAL SHARED: progress tracker, chat, job flow, docs
   ========================================================= */
.progress-tracker { display: flex; flex-direction: column; gap: 0; }
.pt-step { display: flex; gap: 16px; position: relative; padding-bottom: 26px; }
.pt-step:last-child { padding-bottom: 0; }
.pt-step-marker { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; z-index: 2; }
.pt-step.done .pt-step-marker { background: var(--status-approved); color: #fff; }
.pt-step.current .pt-step-marker { background: var(--primary-green); color: #fff; box-shadow: 0 0 0 4px rgba(0,104,55,0.15); }
.pt-step.upcoming .pt-step-marker { background: var(--bg-light); border: 2px solid var(--border-color); color: var(--text-muted); }
.pt-step:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--border-color); }
.pt-step.done:not(:last-child)::before { background: var(--status-approved); }
.pt-step-body h4 { font-size: 13.5px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.pt-step-body p { font-size: 12px; color: var(--text-muted); }
.pt-step.upcoming .pt-step-body h4 { color: var(--text-muted); }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.doc-card { background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 10px; padding: 18px; text-align: center; }
.doc-card i { font-size: 28px; color: var(--primary-green); margin-bottom: 12px; }
.doc-card h5 { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; color: var(--text-main); }
.doc-card span { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 12px; }

.chat-shell { display: flex; height: 560px; background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.chat-list { width: 260px; border-right: 1px solid var(--border-color); overflow-y: auto; flex-shrink: 0; }
.chat-list-item { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border-color); cursor: pointer; }
.chat-list-item.active { background: var(--bg-light); }
.chat-list-item h5 { font-size: 12.5px; font-weight: 700; color: var(--text-main); }
.chat-list-item p { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-header { padding: 14px 20px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.chat-bubble { max-width: 65%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.chat-bubble.in { background: var(--bg-light); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-bubble.out { background: var(--primary-green); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-bubble .cb-time { font-size: 10px; opacity: 0.65; margin-top: 4px; display: block; }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border-color); }
.chat-input-row input { flex: 1; border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 14px; outline: none; font-size: 13px; background: var(--bg-light); }

.job-upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.job-upload-card { border: 2px dashed var(--border-color); border-radius: 10px; padding: 26px 16px; text-align: center; cursor: pointer; }
.job-upload-card:hover { border-color: var(--primary-green); background: rgba(0,104,55,0.03); }
.job-upload-card i { font-size: 26px; color: var(--primary-green); margin-bottom: 10px; }
.job-upload-card h5 { font-size: 12.5px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.job-upload-card span { font-size: 11px; color: var(--text-muted); }
.job-upload-card.done { border-style: solid; border-color: var(--status-approved); background: rgba(16,185,129,0.05); }
.job-upload-card.done i { color: var(--status-approved); }

.wizard-steps { display: flex; align-items: center; margin-bottom: 30px; overflow-x: auto; gap: 4px; }
.wizard-step { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.wizard-step .ws-num { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-light); border: 2px solid var(--border-color); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; }
.wizard-step.active .ws-num { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.wizard-step.complete .ws-num { background: var(--status-approved); border-color: var(--status-approved); color: #fff; }
.wizard-step span.ws-label { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.wizard-step.active span.ws-label { color: var(--text-main); }
.wizard-connector { width: 40px; height: 2px; background: var(--border-color); flex-shrink: 0; }

.portal-switch-banner { background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.35); color: var(--primary-dark); border-radius: 8px; padding: 10px 16px; font-size: 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
body.dark-mode .portal-switch-banner { color: var(--accent-gold); }

.list-tile { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 12px; background: var(--surface-white); }
.list-tile-left { display: flex; align-items: center; gap: 14px; }
.list-tile-icon { width: 42px; height: 42px; border-radius: 9px; background: rgba(0,104,55,0.08); color: var(--primary-green); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.list-tile h4 { font-size: 13.5px; font-weight: 700; color: var(--text-main); }
.list-tile p { font-size: 11.5px; color: var(--text-muted); }

/* Landing switcher (root index) */
.switch-body { min-height: 100vh; background: linear-gradient(135deg, var(--primary-dark), var(--primary-green)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.switch-wrap { max-width: 980px; width: 100%; text-align: center; }
.switch-wrap > .brand-logo-icon { width: 60px; height: 60px; font-size: 26px; margin: 0 auto 18px; }
.switch-wrap h1 { color: #fff; font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.switch-wrap > p { color: rgba(255,255,255,0.75); font-size: 13.5px; margin-bottom: 40px; }
.switch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.switch-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(6px); border-radius: 14px; padding: 30px 22px; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease; }
.switch-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.1); }
.switch-card i { font-size: 30px; color: var(--accent-gold); margin-bottom: 16px; }
.switch-card h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.switch-card p { color: rgba(255,255,255,0.65); font-size: 12px; line-height: 1.6; }

/* ===== Kanban board (Quotation Pipeline / Lead Management) ===== */
.kanban-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.kanban-col { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 12px; min-width: 220px; flex: 1; padding: 12px; }
.kanban-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 2px; }
.kanban-col-head h4 { font-size: 12px; font-weight: 700; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.3px; }
.kanban-count { background: var(--surface-white); border: 1px solid var(--border-color); color: var(--text-muted); font-size: 11px; font-weight: 700; border-radius: 20px; padding: 1px 8px; }
.kanban-card { background: var(--surface-white); border: 1px solid var(--border-color); border-left: 3px solid var(--primary-green); border-radius: 8px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.kanban-card h5 { font-size: 12.5px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.kanban-card p { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.kanban-card .kc-amount { font-size: 12.5px; font-weight: 700; color: var(--primary-green); }
.kanban-card.lost { border-left-color: var(--status-rejected); opacity: 0.75; }
.kanban-card.won { border-left-color: var(--status-approved); }

/* ===== Simple bar charts ===== */
.bar-chart { display: flex; flex-direction: column; gap: 14px; }
.bar-chart-row { display: grid; grid-template-columns: 90px 1fr 70px; align-items: center; gap: 12px; }
.bar-chart-row .bc-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.bar-track { background: var(--bg-light); border-radius: 20px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 20px; background: var(--primary-green); }
.bar-fill.gold { background: var(--accent-gold); }
.bar-fill.warn { background: var(--status-pending); }
.bar-fill.bad { background: var(--status-rejected); }
.bar-chart-row .bc-value { font-size: 12px; font-weight: 700; color: var(--text-main); text-align: right; }

/* ===== Equipment tracking cards ===== */
.equip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 26px; }
.equip-card { background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px 18px; }
.equip-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.equip-card-head h4 { font-size: 13px; font-weight: 700; }
.equip-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(0,104,55,0.08); color: var(--primary-green); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.equip-stat-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; }
.equip-stat-row span.val { font-weight: 700; color: var(--text-main); }
.mini-bar { background: var(--bg-light); border-radius: 20px; height: 6px; overflow: hidden; margin-bottom: 10px; }
.mini-bar-fill { height: 100%; border-radius: 20px; background: var(--status-approved); }
.mini-bar-fill.warn { background: var(--status-pending); }
.mini-bar-fill.bad { background: var(--status-rejected); }

/* ===== Notification categories ===== */
.notif-group { margin-bottom: 24px; }
.notif-group-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); margin-bottom: 10px; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.notif-dot.urgent { background: var(--status-rejected); }
.notif-dot.pending { background: var(--status-pending); }
.notif-dot.done { background: var(--status-approved); }
.notif-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.notif-item i { margin-top: 2px; }
.notif-item h5 { font-size: 12.5px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.notif-item p { font-size: 11.5px; color: var(--text-muted); }
.notif-item .ni-time { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; margin-left: auto; }

/* ===== Approval center ===== */
.approval-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.approval-item .ai-left { display: flex; align-items: center; gap: 14px; }
.approval-item .ai-actions { display: flex; gap: 8px; flex-shrink: 0; }
.approval-item .ai-actions .btn { padding: 7px 14px; font-size: 11.5px; }

/* ===== KPI band (director dashboard) ===== */
.kpi-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi-card { background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px 18px; }
.kpi-card span.kpi-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; display: block; margin-bottom: 8px; }
.kpi-card h3 { font-size: 20px; font-weight: 700; color: var(--text-main); }
.kpi-card .kpi-trend { font-size: 11px; font-weight: 600; margin-top: 6px; }
.kpi-card .kpi-trend.up { color: var(--status-approved); }
.kpi-card .kpi-trend.down { color: var(--status-rejected); }

/* ===== Role switch banner links (dashboard overview) ===== */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 10px; }
.role-card { background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 14px; padding: 26px 22px; text-decoration: none; display: block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.role-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.role-card i.rc-icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(0,104,55,0.08); color: var(--primary-green); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; }
.role-card h3 { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.role-card p { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.role-card .rc-go { font-size: 12px; font-weight: 700; color: var(--primary-green); }

/* ===== GIS map legend ===== */
.map-legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; background: var(--surface-white); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.map-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-main); }
.map-legend-dot { width: 11px; height: 11px; border-radius: 50%; }
.map-legend-dot.completed { background: var(--status-approved); }
.map-legend-dot.progress { background: var(--status-pending); }
.map-legend-dot.pending { background: var(--status-rejected); }

/* ===== Public site trust band ===== */
.trust-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px; padding: 30px 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.trust-item i { color: var(--primary-green); font-size: 18px; }
.gallery-meta { display: flex; gap: 10px; font-size: 10.5px; color: rgba(255,255,255,0.75); margin-top: 4px; }
/* =========================================================
   GEOSURVEY ERP — FINAL UI CONSISTENCY / BOOTSTRAP OVERRIDES
   Keep this block at the END of style.css so it wins over
   Bootstrap and older component rules.
   ========================================================= */

/* ---------- Bootstrap buttons ---------- */
.content-area .btn,
.content-area button.btn,
.content-area a.btn {
    border-radius: 7px;
    font-weight: 600;
    min-height: 42px;
    padding: 10px 18px;
    border-width: 1px;
    box-shadow: none;
}

.content-area .btn-success,
.content-area .btn-primary {
    background: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: #fff !important;
}

.content-area .btn-success:hover,
.content-area .btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important;
}

.content-area .btn-warning {
    background: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: var(--primary-dark) !important;
}

.content-area .btn-warning:hover {
    background: #b99527 !important;
    border-color: #b99527 !important;
    color: #fff !important;
}

.content-area .btn-danger {
    background: var(--status-rejected) !important;
    border-color: var(--status-rejected) !important;
    color: #fff !important;
}

.content-area .btn-danger:hover {
    filter: brightness(0.9);
}

.content-area .btn-secondary,
.content-area .btn-light {
    background: var(--surface-white) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

.content-area .btn-secondary:hover,
.content-area .btn-light:hover {
    background: var(--bg-light) !important;
    border-color: #cbd5e1 !important;
}

/* ---------- Status badges ---------- */
.status-badge,
.badge,
.content-area .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
}

/* Semantic status classes used across the ERP */
.status-scheduled,
.status-pending,
.badge-scheduled,
.badge-pending {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #a16207 !important;
}

.status-assigned,
.badge-assigned {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #1d4ed8 !important;
}

.status-in-progress,
.status-progress,
.badge-in-progress,
.badge-progress {
    background: rgba(59, 130, 246, 0.13) !important;
    color: #1d4ed8 !important;
}

.status-field-complete,
.badge-field-complete {
    background: rgba(139, 92, 246, 0.13) !important;
    color: #6d28d9 !important;
}

.status-delivered,
.status-approved,
.status-paid,
.badge-delivered,
.badge-approved,
.badge-paid {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #047857 !important;
}

.status-rejected,
.status-cancelled,
.badge-rejected,
.badge-cancelled {
    background: rgba(239, 68, 68, 0.13) !important;
    color: #b91c1c !important;
}

.status-draft,
.badge-draft {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

/* ---------- Cards ---------- */
.content-area .card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
}

.content-area .card-header {
    background: rgba(248, 250, 252, 0.72);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

body.dark-mode .content-area .card-header {
    background: rgba(15, 23, 42, 0.35);
}

/* ---------- Survey-job workflow display ---------- */
.survey-workflow-card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.survey-workflow-stage {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

.workflow-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.workflow-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.workflow-list li.current {
    color: var(--text-main);
    font-weight: 700;
}

.workflow-list li.completed {
    color: var(--status-approved);
    font-weight: 600;
}

/* ---------- Read-only workflow fields ---------- */
.workflow-readonly {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: var(--bg-light);
    color: var(--text-main);
}

/* ---------- Progress ---------- */
.workflow-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border-color);
}

.workflow-progress > div {
    height: 100%;
    border-radius: inherit;
    background: var(--primary-green);
    transition: width 0.25s ease;
}

/* ---------- Alerts ---------- */
.content-area .alert-success {
    color: #065f46;
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.22);
}

.content-area .alert-warning {
    color: #92400e;
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.22);
}

.content-area .alert-danger {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.20);
}

/* ---------- Tables ---------- */
.content-area .table {
    color: var(--text-main);
    margin-bottom: 0;
}

.content-area .table > :not(caption) > * > * {
    background-color: transparent;
    color: var(--text-main);
    border-bottom-color: var(--border-color);
    vertical-align: middle;
}

.content-area .table thead th {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}

/* ---------- Dark mode ---------- */
body.dark-mode .content-area .btn-secondary,
body.dark-mode .content-area .btn-light {
    background: var(--surface-white) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .status-scheduled,
body.dark-mode .status-pending,
body.dark-mode .badge-scheduled,
body.dark-mode .badge-pending {
    color: #fbbf24 !important;
}

body.dark-mode .status-assigned,
body.dark-mode .status-in-progress,
body.dark-mode .status-progress,
body.dark-mode .badge-assigned,
body.dark-mode .badge-in-progress,
body.dark-mode .badge-progress {
    color: #93c5fd !important;
}

body.dark-mode .status-field-complete,
body.dark-mode .badge-field-complete {
    color: #c4b5fd !important;
}

body.dark-mode .status-delivered,
body.dark-mode .status-approved,
body.dark-mode .status-paid,
body.dark-mode .badge-delivered,
body.dark-mode .badge-approved,
body.dark-mode .badge-paid {
    color: #6ee7b7 !important;
}

body.dark-mode .status-rejected,
body.dark-mode .status-cancelled,
body.dark-mode .badge-rejected,
body.dark-mode .badge-cancelled {
    color: #fca5a5 !important;
}

body.dark-mode .status-draft,
body.dark-mode .badge-draft {
    background: #334155 !important;
    color: #cbd5e1 !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .content-area .btn,
    .content-area button.btn,
    .content-area a.btn {
        min-height: 40px;
        padding: 9px 14px;
    }

    .survey-workflow-stage {
        font-size: 19px;
    }
}

/* =========================================================
   GeoSurvey ERP — Registration Page CSS Fix
   ========================================================= */

.auth-page .auth-card {
    box-sizing: border-box;
    width: min(100% - 32px, 560px);
    margin: 24px auto;
    padding: 36px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    color: #172033;
}

.auth-page .auth-card h1 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 27px;
    line-height: 1.3;
    font-weight: 700;
}

.auth-page .auth-card > p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.auth-page .auth-card .alert.alert-info {
    box-sizing: border-box;
    display: block;
    margin: 20px 0 24px;
    padding: 13px 15px;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #0b7545;
    border-radius: 8px;
    background: #f0f7f3;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.auth-page .auth-card form {
    margin: 0;
}

.auth-page .auth-card .form-group {
    margin-bottom: 17px;
}

.auth-page .auth-card .form-group label {
    display: block;
    margin-bottom: 7px;
    color: #172033;
    font-size: 14px;
    font-weight: 600;
}

.auth-page .auth-card .form-group input,
.auth-page .auth-card .form-group select,
.auth-page .auth-card .form-group textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #172033;
    font: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-page .auth-card .form-group input:focus,
.auth-page .auth-card .form-group select:focus,
.auth-page .auth-card .form-group textarea:focus {
    outline: none;
    border-color: #087443;
    box-shadow: 0 0 0 3px rgba(8, 116, 67, 0.12);
    background: #ffffff;
}

.auth-page .auth-card form button[type="submit"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 47px;
    margin-top: 4px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: #087443;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-page .auth-card form button[type="submit"]:hover {
    background: #065c35;
}

.auth-page .auth-card .google-signup-section {
    margin-top: 20px;
    text-align: center;
}

.auth-page .auth-card .google-signup-section .google-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #64748b;
    font-size: 13px;
}

.auth-page .auth-card .google-signup-section .google-divider::before,
.auth-page .auth-card .google-signup-section .google-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-page .auth-card .google-signup-button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    background: #ffffff;
    color: #263247;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-page .auth-card .google-signup-button:hover {
    border-color: #9caec0;
    background: #f8fafc;
    color: #172033;
    text-decoration: none;
}

.auth-page .auth-card .google-signup-button .google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    color: #4285f4;
}

.auth-page .auth-card .google-signup-section .google-signup-note {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.auth-page .auth-card a {
    color: #087443;
}

.auth-page .auth-card a:hover {
    color: #065c35;
}

@media (max-width: 600px) {
    .auth-page .auth-card {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 25px 20px;
        border-radius: 12px;
    }

    .auth-page .auth-card h1 {
        font-size: 24px;
    }
}

/* GeoSurvey ERP — compact registration UX refinement */
.auth-page .auth-card {
    width: min(100% - 32px, 500px);
    margin: 20px auto;
    padding: 28px 32px;
    border-radius: 14px;
}

.auth-page .auth-card h1 {
    margin-bottom: 7px;
    font-size: 24px;
    line-height: 1.3;
}

.auth-page .auth-card > p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-page .auth-card .alert.alert-info {
    margin: 14px 0 18px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 12.5px;
    line-height: 1.5;
}

.auth-page .auth-card .form-group {
    margin-bottom: 12px;
}

.auth-page .auth-card .form-group label {
    margin-bottom: 5px;
    font-size: 13px;
}

.auth-page .auth-card .form-group input,
.auth-page .auth-card .form-group select,
.auth-page .auth-card .form-group textarea {
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 14px;
}

.auth-page .auth-card form button[type="submit"] {
    min-height: 43px;
    margin-top: 3px;
    padding: 10px 14px;
    font-size: 14px;
}

.auth-page .auth-card .google-signup-section {
    margin-top: 14px;
}

.auth-page .auth-card .google-signup-section .google-divider {
    gap: 10px;
    margin: 12px 0;
    font-size: 12px;
}

.auth-page .auth-card .google-signup-button {
    min-height: 43px;
    padding: 10px 12px;
    font-size: 14px;
}

.auth-page .auth-card .google-signup-section .google-signup-note {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .auth-page .auth-card {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 22px 18px;
    }

    .auth-page .auth-card h1 {
        font-size: 22px;
    }
}

/* GeoSurvey ERP — final compact registration layout */
.auth-page .auth-card {
    width: min(100% - 32px, 460px);
    margin: 16px auto;
    padding: 23px 26px;
    border-radius: 13px;
}

.auth-page .auth-card h1 {
    font-size: 22px;
    margin-bottom: 5px;
}

.auth-page .auth-card > p {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
}

.auth-page .auth-card .alert.alert-info {
    margin: 11px 0 14px;
    padding: 9px 11px;
    font-size: 12px;
    line-height: 1.45;
}

.auth-page .auth-card .form-group {
    margin-bottom: 9px;
}

.auth-page .auth-card .form-group label {
    margin-bottom: 4px;
    font-size: 12.5px;
}

.auth-page .auth-card .form-group input,
.auth-page .auth-card .form-group select,
.auth-page .auth-card .form-group textarea {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
    border-radius: 7px;
}

.auth-page .auth-card form button[type="submit"] {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
}

.auth-page .auth-card .google-signup-section {
    margin-top: 10px;
}

.auth-page .auth-card .google-signup-section .google-divider {
    margin: 9px 0;
}

.auth-page .auth-card .google-signup-button {
    min-height: 39px;
    padding: 8px 11px;
    font-size: 13px;
}

.auth-page .auth-card .google-signup-section .google-signup-note {
    margin-top: 7px;
    font-size: 11.5px;
    line-height: 1.45;
}

@media (max-width: 600px) {
    .auth-page .auth-card {
        width: calc(100% - 20px);
        margin: 10px auto;
        padding: 20px 16px;
    }

    .auth-page .auth-card h1 {
        font-size: 21px;
    }
}

/* Registration page — match the GeoSurvey login screen */
.auth-page .auth-card {
    box-sizing: border-box;
    width: min(500px, calc(100% - 32px));
    margin: 24px auto;
    padding: 36px 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .12);
    color: #172033;
}

.auth-page .auth-card h1 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.3;
}

.auth-page .auth-card > p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.auth-page .auth-card .alert.alert-info {
    margin: 16px 0 22px;
    padding: 12px 14px;
    border: 1px solid #dbe5ef;
    border-left: 4px solid #087443;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.auth-page .auth-card .form-group {
    margin-bottom: 15px;
}

.auth-page .auth-card .form-group label {
    display: block;
    margin-bottom: 7px;
    color: #172033;
    font-size: 14px;
    font-weight: 600;
}

.auth-page .auth-card .form-group input,
.auth-page .auth-card .form-group select,
.auth-page .auth-card .form-group textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #172033;
    font-family: inherit;
    font-size: 15px;
}

.auth-page .auth-card .form-group input:focus,
.auth-page .auth-card .form-group select:focus,
.auth-page .auth-card .form-group textarea:focus {
    outline: none;
    border-color: #087443;
    box-shadow: 0 0 0 3px rgba(8, 116, 67, .12);
    background: #fff;
}

.auth-page .auth-card form button[type="submit"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 5px;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    background: #087443;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.auth-page .auth-card form button[type="submit"]:hover {
    background: #065c35;
}

.auth-page .auth-card .google-signup-section {
    margin-top: 18px;
}

.auth-page .auth-card .google-signup-section .google-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #64748b;
    font-size: 13px;
}

.auth-page .auth-card .google-signup-section .google-divider::before,
.auth-page .auth-card .google-signup-section .google-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-page .auth-card .google-signup-button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.auth-page .auth-card .google-signup-button:hover {
    background: #f8fafc;
    text-decoration: none;
}

.auth-page .auth-card .google-signup-section .google-signup-note {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.auth-page .auth-card a {
    color: #087443;
}

@media (max-width: 600px) {
    .auth-page .auth-card {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 26px 20px;
        border-radius: 12px;
    }

    .auth-page .auth-card h1 {
        font-size: 24px;
    }
}
