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

:root {
    /* Color Variables */
    --bg-primary: #0b0f19;
    --bg-secondary: #131b2e;
    --bg-tertiary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-red: #e81c24; /* Tesla Red */
    --accent-red-glow: rgba(232, 28, 36, 0.15);
    --accent-red-hover: #ff333a;
    
    --accent-blue: #0ea5e9;
    --accent-blue-glow: rgba(14, 165, 233, 0.15);
    
    --status-not-contacted: #64748b;
    --status-letter-sent: #f59e0b;
    --status-discussion: #0ea5e9;
    --status-meeting: #8b5cf6;
    --status-contracted: #10b981;
    --status-rejected: #ef4444;
    
    --border-color: rgba(148, 163, 184, 0.1);
    --border-focus: rgba(14, 165, 233, 0.5);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    --sidebar-width: 260px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Sidebar Layout */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 100;
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-red), #ff6b6b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 28, 36, 0.3);
}

.brand-logo svg {
    fill: white;
    width: 18px;
    height: 18px;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.menu-item.active {
    background: linear-gradient(90deg, var(--accent-red-glow), transparent);
    color: var(--accent-red);
    border-left: 3px solid var(--accent-red);
    padding-left: 13px;
}

.menu-item svg {
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.top-bar {
    height: 70px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.top-bar-title {
    font-size: 20px;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-blue);
}

/* Content Screens */
.screen {
    flex-grow: 1;
    padding: 32px;
    overflow-y: auto;
    display: none;
}

.screen.active {
    display: block;
}

/* Dashboard Screen Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.metric-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.metric-card.red::after { background: var(--accent-red); }
.metric-card.blue::after { background: var(--accent-blue); }
.metric-card.purple::after { background: #8b5cf6; }
.metric-card.green::after { background: #10b981; }

.metric-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.metric-trend {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-trend.up { color: #10b981; }

/* Dashboard Sections */
.sections-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 32px;
}

.section-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 18px;
    color: var(--text-primary);
}

/* Map Screen Layout */
.map-screen-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    height: calc(100vh - 170px);
    padding: 24px;
    background-color: var(--bg-primary);
    overflow: hidden;
}

#leaflet-map {
    height: 100%;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    z-index: 10;
}

.map-sidebar {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.map-sidebar-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-list-item {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.map-list-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--text-muted);
}

.map-list-item.active {
    border-color: var(--accent-red);
    background-color: var(--accent-red-glow);
}

.map-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.map-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.map-item-type {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.map-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Tables & Custom Data Grid */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.custom-table th {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    padding: 14px 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.05em;
}

.custom-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.custom-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.badge-not-contacted { background-color: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.badge-letter-sent { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-discussion { background-color: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.badge-meeting { background-color: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.badge-contracted { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-rejected { background-color: rgba(239, 68, 68, 0.15); color: #f87171; }

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Parcel Inspector View */
.inspector-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.inspector-title {
    font-size: 16px;
    font-weight: 600;
}

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

.inspector-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.data-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.data-value {
    font-size: 13px;
    color: var(--text-primary);
}

.data-value.owner-name {
    font-weight: 600;
    color: var(--accent-blue);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    box-shadow: 0 4px 12px rgba(232, 28, 36, 0.2);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

/* Edit Status Modal / Control */
.status-select-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-select {
    flex-grow: 1;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.status-select:focus {
    border-color: var(--border-focus);
}

/* Form inputs for notes */
.notes-textarea {
    width: 100%;
    min-height: 80px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 10px;
    font-size: 13px;
    resize: vertical;
    outline: none;
    transition: var(--transition-smooth);
}

.notes-textarea:focus {
    border-color: var(--border-focus);
}

/* Exporter View */
.exporter-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.exporter-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.exporter-title {
    font-size: 20px;
    font-weight: 600;
}

.exporter-desc {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 500px;
    line-height: 1.5;
}

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: -320px;
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--accent-red);
    border-radius: 4px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast.show {
    right: 24px;
}

.toast.success {
    border-left-color: #10b981;
}

/* Funnel Visualizer in Dashboard */
.funnel-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

.funnel-stage {
    display: flex;
    align-items: center;
    gap: 12px;
}

.funnel-label {
    width: 120px;
    font-size: 12px;
    color: var(--text-secondary);
}

.funnel-bar-wrapper {
    flex-grow: 1;
    height: 14px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
}

.funnel-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), #3b82f6);
    border-radius: 10px;
    transition: width 0.8s ease-in-out;
}

.funnel-bar.red { background: linear-gradient(90deg, var(--accent-red), #ef4444); }
.funnel-bar.purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.funnel-bar.green { background: linear-gradient(90deg, #10b981, #34d399); }

.funnel-count {
    width: 30px;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

/* ============================================================================
   Metis Porus Custom Styles
   ============================================================================ */

/* 1. Header Changes & Mode Switcher */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(19, 27, 46, 0.8);
    backdrop-filter: blur(12px);
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-subtitle {
    font-size: 11px;
    font-weight: 600;
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-blue);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mode-switcher {
    display: flex;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: 30px;
    gap: 2px;
}

.mode-btn {
    border: none;
    background: none;
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mode-btn.active {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.user-profile:hover {
    background-color: rgba(255,255,255,0.05);
}

.user-role-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

/* 2. Full Secure Login Screen */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(232, 28, 36, 0.05), transparent 40%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s ease;
}

.login-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.login-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.login-form-group {
    text-align: left;
    margin-bottom: 20px;
}

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

.login-input {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.login-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.btn-login {
    width: 100%;
    background: linear-gradient(90deg, var(--accent-blue), #3b82f6);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.btn-login:hover {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.login-error {
    color: var(--status-rejected);
    font-size: 13px;
    margin-top: 15px;
    font-weight: 500;
}

/* 3. Floating User/Admin Dashboard Panel */
.dashboard-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 5000;
    display: none;
}

.dashboard-panel {
    position: fixed;
    top: 0;
    right: -460px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 5001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-panel.open {
    right: 0;
}

.panel-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.panel-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
}

.panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255,255,255,0.02);
}

.panel-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.panel-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background-color: rgba(14, 165, 233, 0.03);
}

.panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

.panel-section {
    margin-bottom: 24px;
}

.panel-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-primary);
    padding: 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.user-card-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.user-card-info h4 {
    font-size: 16px;
    font-weight: 600;
}

.user-card-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Switches & Toggles */
.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.toggle-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.toggle-info p {
    font-size: 11px;
    color: var(--text-secondary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

input:checked + .slider:before {
    transform: translateX(20px);
    background-color: white;
}

.panel-select {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 10px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    margin-bottom: 12px;
}

.panel-input {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 10px;
    font-size: 13px;
    outline: none;
}

.panel-textarea {
    width: 100%;
    min-height: 70px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 10px;
    font-size: 13px;
    resize: vertical;
    outline: none;
}

.btn-panel {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.btn-signout {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--status-rejected);
}

.btn-signout:hover {
    background-color: rgba(239, 68, 68, 0.05);
}

/* 4. Outreach Modal Composer Overlay */
.composer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 6000;
    display: none;
    align-items: center;
    justify-content: center;
}

.composer-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mobile & Tablet Responsiveness Overrides */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-menu {
        flex-direction: row;
        justify-content: space-around;
        padding: 8px 16px;
    }
    
    .sidebar-brand, .sidebar-footer {
        display: none;
    }
    
    .main-content {
        height: calc(100vh - 64px - 58px);
        padding-bottom: 0;
    }
    
    .top-bar {
        position: static;
    }
    
    .mode-switcher {
        scale: 0.9;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .split-container {
        flex-direction: column;
        height: auto;
    }
    
    .map-sidebar {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .map-container-wrapper {
        height: 350px;
    }
    
    .inspector-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        max-height: 400px;
        overflow-y: auto;
    }
    
    .dashboard-panel {
        max-width: 100%;
    }
}

