@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-primary: #f8fafc; /* Slate White */
    --bg-secondary: #ffffff; /* Pure White */
    --bg-accent: #f1f5f9; /* Slate Light Gray */
    --accent-cyan: #1b365d; /* Corporate Navy Blue */
    --accent-purple: #8c6239; /* Muted Bronze Gold */
    --accent-gold: #c5a880; /* Elegant Soft Gold */
    --accent-danger: #ef4444; /* Corporate Red */
    --accent-success: #10b981; /* Corporate Green */
    --text-primary: #0f172a; /* Slate Dark Charcoal */
    --text-secondary: #475569; /* Slate Gray */
    --text-muted: #64748b; /* Soft Gray */
    --border-glass: rgba(15, 23, 42, 0.08); /* Clean thin border */
    --bg-glass: rgba(255, 255, 255, 0.9); /* Frosted corporate white */
    --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08); /* Soft corporate shadow */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-outfit: 'Outfit', sans-serif;
    --font-playfair: 'Playfair Display', serif;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-outfit);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Background Ambient Ornaments */
.ambient-glow-1, .ambient-glow-2 {
    display: none;
}

/* Brand logo styling */
.logo {
    font-family: var(--font-playfair);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-primary);
    display: inline-block;
}

.logo span {
    color: var(--accent-cyan);
}

/* -----------------------------------------
   1. LOGIN INTERFACE
   ----------------------------------------- */
.login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.login-card .brand {
    text-align: center;
}

.login-card .subtitle {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    border: 1px solid var(--border-glass);
    background: var(--bg-accent);
    color: var(--text-primary);
    border-radius: 12px;
    outline: none;
    font-family: var(--font-outfit);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.input-wrapper input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.error-msg {
    display: none;
    color: var(--accent-danger);
    background: rgba(255, 74, 90, 0.1);
    border: 1px solid rgba(255, 74, 90, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.btn-submit {
    position: relative;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.2);
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.35);
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-loader {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(6, 9, 19, 0.3);
    border-top: 3px solid var(--bg-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

/* -----------------------------------------
   2. PORTAL / DASHBOARD MAIN STYLES
   ----------------------------------------- */
.portal-header {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info-badge {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.user-info-badge span {
    color: var(--accent-cyan);
    font-weight: 600;
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    border-color: var(--accent-danger);
    color: var(--accent-danger);
    background: rgba(255, 74, 90, 0.05);
}

/* Dashboard Container */
.portal-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Case Overview Bar */
.case-bar {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.case-meta {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-item .val {
    font-size: 1.15rem;
    font-weight: 600;
}

/* Custom Badges */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.active {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-cyan);
}

.status-badge.progress {
    background: rgba(127, 0, 255, 0.1);
    border: 1px solid rgba(127, 0, 255, 0.2);
    color: #a855f7;
}

.status-badge.closed {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-success);
}

/* Grid Layout for client */
.portal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.dashboard-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
}

.dashboard-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
}

.panel-header-icon {
    font-size: 1.4rem;
}

/* Timeline/Protocol Styles */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border-glass);
    padding-bottom: 0.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-item.closed::before {
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
}

.timeline-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 0.25rem;
    display: block;
}

.timeline-item.closed .timeline-time {
    color: var(--accent-success);
}

.timeline-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Secure Gallery Styles */
.gallery-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.25rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.04);
    border-color: var(--accent-cyan);
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

.gallery-file-icon {
    font-size: 2rem;
}

.gallery-file-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 9, 19, 0.85);
    font-size: 0.7rem;
    padding: 0.4rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Download Center */
.download-center {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

.btn-download-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem;
    background: var(--bg-accent);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-download-all:hover {
    background: rgba(27, 54, 93, 0.05);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* -----------------------------------------
   3. ADMIN CASE MANAGEMENT PANEL
   ----------------------------------------- */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-tab {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-tab.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.admin-view-content {
    display: none;
}

.admin-view-content.active {
    display: block;
}

/* Form Styles for admin panel */
.admin-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.admin-form .full-width {
    grid-column: span 2;
}

.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-glass);
    background: var(--bg-accent);
    color: var(--text-primary);
    border-radius: 10px;
    outline: none;
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    border-color: var(--accent-cyan);
}

.admin-form button {
    padding: 0.9rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-primary);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 242, 254, 0.2);
}

/* Case selector for uploads & logs */
.admin-case-selector {
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: 12px;
}

/* Case table in admin view */
.table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    font-size: 0.95rem;
}

tr:hover td {
    background: var(--bg-accent);
}

/* Form Upload Input Customization */
.file-upload-input::-webkit-file-upload-button {
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-outfit);
    font-weight: 600;
    margin-right: 1rem;
    transition: var(--transition-smooth);
}

.file-upload-input::-webkit-file-upload-button:hover {
    background: rgba(27, 54, 93, 0.08);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.success-notification {
    display: none;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-success);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* -----------------------------------------
   4. LIGHTBOX / PHOTO PREVIEW MODAL
   ----------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 12, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 1px solid var(--border-glass);
}

.lightbox-caption {
    color: var(--text-secondary);
    font-size: 1.05rem;
    text-align: center;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--text-primary);
}

/* Responsive adjust */
@media (max-width: 968px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-form {
        grid-template-columns: 1fr;
    }
    
    .admin-form .full-width {
        grid-column: span 1;
    }
}

/* -----------------------------------------
   5. GPS TRACKER & MAP LAYOUT
   ----------------------------------------- */
.gps-tracker-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gps-meta-display {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
}

.gps-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 0.75rem;
}

.gps-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gps-meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gps-meta-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .gps-tracker-layout {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------
   6. DIRECT SECURE MESSENGER (CHAT)
   ----------------------------------------- */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chat-input-form {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-accent);
}

.chat-input-form input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-outfit);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.chat-input-form input:focus {
    border-color: var(--accent-cyan);
}

.chat-input-form button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-cyan);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-input-form button:hover {
    background: var(--accent-purple);
}

.chat-msg {
    max-width: 80%;
    padding: 0.8rem 1.1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.chat-msg.self {
    align-self: flex-end;
    background: var(--accent-cyan);
    color: white;
    border-bottom-right-radius: 3px;
}

.chat-msg.other {
    align-self: flex-start;
    background: var(--bg-accent);
    color: var(--text-primary);
    border-bottom-left-radius: 3px;
    border: 1px solid var(--border-glass);
}

.chat-msg-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.35rem;
    opacity: 0.85;
    text-align: right;
}

.chat-msg.self .chat-msg-time {
    color: rgba(255, 255, 255, 0.85);
}

.chat-msg.other .chat-msg-time {
    color: var(--text-muted);
}

/* -----------------------------------------
   7. ADMIN ACTIONS & CASE CONTROLS
   ----------------------------------------- */
.admin-actions-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-status-select {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

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

.btn-delete-case {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
    color: var(--accent-danger);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-delete-case:hover {
    background: var(--accent-danger);
    color: white;
    border-color: var(--accent-danger);
}

/* -----------------------------------------
   8. PORTAL MOBILE RESPONSIVENESS
   ----------------------------------------- */
@media (max-width: 968px) {
    .admin-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .admin-tab {
        flex-grow: 1;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 600px) {
    .portal-main {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        align-items: stretch;
    }
    
    .user-info-badge {
        text-align: center;
    }
    
    .btn-logout {
        width: 100%;
        text-align: center;
    }
    
    .case-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }
    
    .case-meta {
        gap: 1.25rem;
        flex-direction: column;
        width: 100%;
    }
    
    .meta-item {
        border-bottom: 1px solid rgba(15, 23, 42, 0.05);
        padding-bottom: 0.5rem;
    }
    
    .meta-item:last-child {
        border-bottom: none;
    }
    
    #gps-map-container {
        height: 280px !important;
    }
    
    .gps-meta-display {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .chat-container {
        height: 350px;
    }
    
    .chat-messages {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .chat-msg {
        max-width: 90%;
        padding: 0.7rem 0.95rem;
        font-size: 0.9rem;
    }
    
    .chat-input-form {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .chat-input-form input {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .chat-input-form button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .admin-form {
        gap: 1rem;
    }
    
    .dashboard-panel {
        padding: 1.25rem;
    }
}

/* =========================================
   9. HF SCANNER & SIGNAL JAMMER STYLES
   ========================================= */

/* Conic gradient radar sweep */
.radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 50%, rgba(27, 54, 93, 0.4) 100%);
    transform-origin: center;
    transform: rotate(0deg);
}

.radar-sweep.scanning {
    display: block !important;
    animation: radar-rotate 4s linear infinite;
}

@keyframes radar-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Radar Blips */
.radar-blip {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.radar-blip.danger {
    background-color: var(--accent-danger);
    box-shadow: 0 0 8px var(--accent-danger);
}

.radar-blip.warning {
    background-color: #f59e0b; /* Amber */
    box-shadow: 0 0 8px #f59e0b;
}

.radar-blip::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: blip-pulse 2s cubic-bezier(0.1, 0, 0.3, 1) infinite;
}

.radar-blip.danger::after {
    color: var(--accent-danger);
}

.radar-blip.warning::after {
    color: #f59e0b;
}

@keyframes blip-pulse {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Switch Toggle Slider */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-accent);
    transition: var(--transition-smooth);
    border-radius: 34px;
    border: 1px solid var(--border-glass);
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-smooth);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
}

.switch-toggle input:checked + .slider-round {
    background-color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.switch-toggle input:checked + .slider-round:before {
    transform: translateX(26px);
}

/* Oscilloscope warning blink */
@keyframes jammer-blink {
    0%, 100% {
        background: rgba(239, 68, 68, 0.08);
    }
    50% {
        background: rgba(239, 68, 68, 0.22);
    }
}

/* Jamming Layout Grid */
.jamming-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Client Map Blackout Layout */
.gps-map-wrapper {
    position: relative;
    width: 100%;
}

.map-blocked {
    filter: grayscale(1) blur(3px);
    opacity: 0.65;
    pointer-events: none;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

#gps-map-blocked-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.88);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-weight: 700;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(4px);
    transition: opacity 0.5s ease;
}

@media (max-width: 968px) {
    .jamming-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

