/* ==========================================================================
   NetController - Main Stylesheet
   Designed for VU2QAR NetController Application
   Theme: Cybernetic Dark Transceiver Dashboard
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
    --bg-base: hsl(222, 24%, 6%);
    --bg-surface: hsl(222, 22%, 10%);
    --bg-glass: rgba(15, 20, 30, 0.7);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-active: rgba(0, 240, 255, 0.4);
    
    /* Neon Radio Console Theme Colors */
    --color-cyan: hsl(184, 100%, 50%);
    --color-cyan-glow: hsla(184, 100%, 50%, 0.15);
    --color-cyan-dim: hsl(184, 100%, 35%);
    --color-gold: hsl(42, 100%, 53%);
    --color-gold-glow: hsla(42, 100%, 53%, 0.15);
    --color-purple: hsl(272, 85%, 60%);
    --color-purple-glow: hsla(272, 85%, 60%, 0.15);
    --color-danger: hsl(352, 90%, 55%);
    --color-danger-glow: hsla(352, 90%, 55%, 0.15);
    
    /* Text colors */
    --text-primary: hsl(210, 38%, 95%);
    --text-secondary: hsl(215, 20%, 65%);
    --text-muted: hsl(215, 12%, 45%);
    
    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, hsla(242, 60%, 15%, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(184, 50%, 12%, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Layout Structure --- */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.brand-logo i {
    color: var(--bg-base);
    font-size: 1.25rem;
}

.brand-text h1 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 60%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--color-cyan);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Sidebar Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
    width: 100%;
}

.menu-item i {
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

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

.menu-item.active {
    color: var(--color-cyan);
    background-color: var(--color-cyan-glow);
    border-color: var(--border-active);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.05);
}

.menu-item.active i {
    color: var(--color-cyan);
    filter: drop-shadow(0 0 4px var(--color-cyan));
}

.logout-btn {
    color: var(--color-danger);
    background: rgba(240, 40, 70, 0.03);
    border: 1px solid rgba(240, 40, 70, 0.1);
}

.logout-btn:hover {
    background: var(--color-danger-glow);
    border-color: rgba(240, 40, 70, 0.3);
    color: var(--color-danger);
}

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
    margin-top: 24px;
}

.operator-quick-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-glass);
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
    font-size: 1.1rem;
}

.info-text {
    overflow: hidden;
}

.quick-callsign {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.quick-handle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Main Content Layout */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 40px;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.header-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-title p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-indicator-panel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
}

.status-indicator .dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-cyan);
}

.status-indicator.online .dot {
    animation: beaconPulse 2s infinite;
}

.status-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-cyan);
    letter-spacing: 0.5px;
}

.time-display {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.time-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transition: 0.5s;
}

.time-display:hover::before {
    left: 100%;
}

.time-display:hover {
    color: #ffffff;
    border-color: var(--color-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
    transform: translateY(-2px) scale(1.03);
    background: var(--bg-glass);
}

#header-time-ist:hover {
    border-color: var(--color-gold) !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.25) !important;
    color: var(--color-gold) !important;
}

/* --- Common UI Components --- */

/* Glass Panels */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-main);
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-cyan);
    color: var(--bg-base);
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
    background-color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

.btn-danger {
    background-color: rgba(240, 40, 70, 0.15);
    border-color: rgba(240, 40, 70, 0.25);
    color: var(--color-danger);
}

.btn-danger:hover {
    background-color: var(--color-danger);
    color: var(--bg-base);
    box-shadow: 0 4px 14px rgba(240, 40, 70, 0.25);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: var(--border-radius-sm);
}

/* Font helpers */
.font-mono {
    font-family: var(--font-mono);
}

.text-uppercase {
    text-transform: uppercase;
}

.text-cyan { color: var(--color-cyan); }
.text-gold { color: var(--color-gold); }
.text-purple { color: var(--color-purple); }

/* --- Tab Switching Mechanics --- */
.tab-content {
    display: none;
    animation: fadeIn var(--transition-smooth);
}

.tab-content.active {
    display: block;
}

/* --- Login View Styles --- */
.login-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, hsla(242, 60%, 15%, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(184, 50%, 12%, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity var(--transition-smooth);
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.login-header {
    text-align: center;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: var(--font-sans);
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.login-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
}

.login-footer a {
    color: var(--color-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.login-footer a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* --- Tab 1: Dashboard Styles --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-main);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.alert-cyan {
    background: var(--color-cyan-glow);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.stat-icon.alert-gold {
    background: var(--color-gold-glow);
    color: var(--color-gold);
    border: 1px solid rgba(255, 199, 0, 0.2);
}

.stat-icon.alert-purple {
    background: var(--color-purple-glow);
    color: var(--color-purple);
    border: 1px solid rgba(272, 85, 60, 0.2);
}

.stat-details h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 4px;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Empty messages */
.no-profile-msg, .empty-nets-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.no-profile-msg i, .empty-nets-msg i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-profile-msg p, .empty-nets-msg p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    max-width: 320px;
}

/* Profile summary card body */
.profile-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-label i {
    width: 16px;
    text-align: center;
}

.summary-val {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-all;
}

/* Quick list of nets */
.nets-quick-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-net-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
}

.quick-net-item:hover {
    border-color: var(--border-active);
    transform: translateX(4px);
}

.quick-net-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quick-net-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-glass);
}

.quick-net-fallback-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background: var(--color-cyan-glow);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.quick-net-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.quick-net-details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.quick-net-freq {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: rgba(0, 240, 255, 0.08);
    color: var(--color-cyan);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

/* --- Tab 2: Profile Page Split Grid --- */
.profile-tab-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

.form-card {
    padding: 32px;
    width: 100%;
}

.db-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.db-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold);
}

.db-card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 12px;
}

.db-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.db-stats {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 16px;
}

.db-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.db-stat-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gold);
}

/* Form Styles */
.form-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.icon-bubble {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-cyan-glow);
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
    font-size: 1.25rem;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.icon-bubble.bg-gold-glow {
    background: var(--color-gold-glow);
    border-color: rgba(255, 199, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 199, 0, 0.1);
}

.form-title-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.form-title-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.responsive-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group.col-6 {
    width: calc(50% - 10px);
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .form-group.col-6 {
        width: 100%;
    }
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

label i {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.required {
    color: var(--color-danger);
    font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="email"],
input[type="time"],
textarea {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-inset);
    width: 100%;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px var(--color-cyan-glow);
}

textarea {
    resize: vertical;
}

.input-helper {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-container input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.password-toggle:hover {
    color: var(--color-cyan);
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-glass);
    margin-top: 10px;
}

/* --- Tab 3: Nets CRUD Grid --- */
.nets-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .nets-manager-header {
        flex-direction: column;
        align-items: stretch;
    }
}

.search-bar-container {
    position: relative;
    flex-grow: 1;
    max-width: 480px;
}

.search-bar-container input {
    padding-left: 44px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.net-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.net-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
}

.net-card-body {
    padding: 24px;
    display: flex;
    gap: 16px;
    flex-grow: 1;
}

.net-card-logo-container {
    flex-shrink: 0;
}

.net-card-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-md);
    object-fit: cover;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-inset);
}

.net-card-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-md);
    background: var(--color-cyan-glow);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.net-card-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.net-card-details h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.net-card-repeater {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.net-card-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.info-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-pill-cyan {
    background: var(--color-cyan-glow);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.info-pill-gold {
    background: var(--color-gold-glow);
    color: var(--color-gold);
    border: 1px solid rgba(255, 199, 0, 0.2);
}

.net-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 24px 20px 24px;
    border-top: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.01);
}

/* Empty grid message */
.empty-grid-msg {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    border: 1px dashed var(--border-glass);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.01);
    text-align: center;
}

.empty-grid-msg i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-grid-msg h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-grid-msg p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 380px;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 28px;
    transform: scale(0.9);
    transition: transform var(--transition-smooth);
    overflow: hidden;
}

.modal-wide {
    max-width: 960px;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-cyan);
}

.modal-body-scrollable {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
    margin-top: 24px;
}

/* File Upload custom styling */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 11px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-fast);
    text-align: center;
    width: 100%;
}

.file-upload-wrapper:hover .custom-file-upload {
    border-color: var(--color-cyan);
    background-color: rgba(255, 255, 255, 0.02);
}

.logo-preview-box {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-preview-box span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.logo-preview-container {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder-svg {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    background: rgba(20, 25, 35, 0.9);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--color-cyan);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-main);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast.toast-success {
    border-left-color: var(--color-cyan);
}

.toast.toast-success i {
    color: var(--color-cyan);
}

.toast.toast-error {
    border-left-color: var(--color-danger);
}

.toast.toast-error i {
    color: var(--color-danger);
}

.toast.toast-warning {
    border-left-color: var(--color-gold);
}

.toast.toast-warning i {
    color: var(--color-gold);
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Master Database Table & Toolbar Elements --- */
.modal-tab-headers {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1px;
    margin-bottom: 20px;
}

.modal-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    padding: 10px 16px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-tab-btn:hover {
    color: var(--text-primary);
}

.modal-tab-btn:disabled {
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    opacity: 0.4;
    border-bottom-color: transparent !important;
}

.modal-tab-btn:disabled:hover {
    color: var(--text-muted) !important;
    background: transparent !important;
}

.modal-tab-btn.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.modal-tab-content {
    display: none;
    animation: fadeIn var(--transition-smooth);
}

.modal-tab-content.active {
    display: block;
}

.db-toolbar {
    margin-bottom: 16px;
}

.db-toolbar .search-bar-container {
    max-width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    background: rgba(20, 25, 35, 0.4);
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.db-table th {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.db-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.db-table tbody tr {
    transition: var(--transition-fast);
}

.db-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.db-table tbody tr:last-child td {
    border-bottom: none;
}

.db-table .btn-group {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.db-table td.font-mono {
    font-size: 0.85rem;
}

/* --- Pagination Styles --- */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-glass);
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--color-cyan-dim);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

/* --- Utility Classes --- */
.hidden {
    display: none !important;
}

/* --- Animations --- */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 24px rgba(0, 240, 255, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes beaconPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    }
    70% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(0, 240, 255, 0);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    to { transform: translateY(0); opacity: 1; }
}

/* --- Net Control / Transceiver Screen Styles --- */
.transceiver-screen {
    background: rgba(10, 15, 25, 0.7);
    border: 1px solid var(--border-glass);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), var(--shadow-main);
    position: relative;
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
}

.screen-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.screen-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.screen-val {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
}

.screen-input {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: var(--border-radius-sm) !important;
    color: var(--color-cyan) !important;
    padding: 6px 12px !important;
    font-size: 0.95rem !important;
    width: 100%;
}

.screen-input:focus {
    border-color: var(--color-cyan) !important;
    box-shadow: 0 0 8px var(--color-cyan-glow) !important;
}

/* Grid columns helper for rig screen */
.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

@media (max-width: 768px) {
    .col-6 { grid-column: span 12; }
    .col-4 { grid-column: span 12; }
    .col-3 { grid-column: span 6; }
}

/* --- Excel-style Grid Table --- */
.excel-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.excel-grid th {
    background-color: rgba(20, 25, 35, 0.9);
    border-bottom: 2px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 10px 14px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.excel-grid th:last-child {
    border-right: none;
}

.excel-grid td {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    position: relative;
}

.excel-grid td:last-child {
    border-right: none;
}

.excel-grid tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.excel-grid-cell-static {
    padding: 3px 8px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

.excel-grid-input {
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--text-primary);
    padding: 3px 8px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    width: 100%;
    height: 100%;
    transition: background-color 0.15s ease;
    box-shadow: none !important;
}

.excel-grid-input:focus {
    background-color: rgba(0, 240, 255, 0.03);
    outline: 2px solid var(--color-cyan);
    outline-offset: -2px;
}

.excel-grid-input[readonly] {
    cursor: not-allowed;
    color: var(--text-secondary);
}

.excel-grid-input.font-mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-cyan);
}

.excel-grid-input.text-center {
    text-align: center;
}

/* --- Autocomplete Suggestions Dropdown --- */
.autocomplete-suggestions {
    position: absolute;
    z-index: 9999;
    background: rgba(15, 20, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-main), 0 10px 30px rgba(0,0,0,0.5);
    max-height: 220px;
    overflow-y: auto;
    min-width: 320px !important;
}

.autocomplete-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
    white-space: nowrap;
    gap: 15px;
}

.autocomplete-suggestion-item:last-child {
    border-bottom: none;
}

.autocomplete-suggestion-item:hover,
.autocomplete-suggestion-item.selected {
    background-color: var(--color-cyan-glow);
}

.autocomplete-suggestion-item .item-callsign {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-cyan);
    text-transform: uppercase;
    white-space: nowrap;
}

.autocomplete-suggestion-item .item-details {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-align: right;
    white-space: nowrap;
}

/* Callsign checked text highlights */
.excel-grid-callsign-checked input {
    color: #ccff00 !important; /* Fluorescent yellow */
    text-shadow: 0 0 5px rgba(204, 255, 0, 0.5); /* Subtle glow to make it pop */
}

/* Badges & Status Indicators for Manage Users section */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}
.bg-cyan-dim {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: #06b6d4 !important;
}
.bg-slate-dim {
    background-color: rgba(148, 163, 184, 0.15) !important;
    color: #94a3b8 !important;
}

/* Shared Footer Bar */
.app-footer-bar {
    text-align: center;
    padding: 20px 10px;
    margin-top: auto;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.app-footer-bar:hover {
    opacity: 1;
    color: var(--text-secondary);
}

/* Hit Counter Styles */
.footer-counter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
}

.hit-counter-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hit-counter-wrapper:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-1.5px);
}

.hit-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
    text-transform: uppercase;
}

.hit-digits {
    display: flex;
    gap: 4px;
}

.digit-card {
    position: relative;
    width: 22px;
    height: 32px;
    background: linear-gradient(180deg, #1e293b 0%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    perspective: 200px;
    transition: all 0.2s ease;
}

.digit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

/* Alternate glowing digit colors */
.digit-card:nth-child(3n+1) {
    color: #06b6d4; /* Cyan */
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}
.digit-card:nth-child(3n+2) {
    color: #eab308; /* Gold */
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
}
.digit-card:nth-child(3n) {
    color: #ec4899; /* Pink */
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

/* Beautiful flip animation when digit updates */
@keyframes digitFlip {
    0% {
        transform: rotateX(0deg);
        filter: brightness(1);
    }
    50% {
        transform: rotateX(90deg);
        filter: brightness(0.4);
        background: #0f172a;
    }
    100% {
        transform: rotateX(0deg);
        filter: brightness(1.2);
    }
}

.digit-card.changed {
    animation: digitFlip 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #22c55e !important; /* Flash emerald green on increment */
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.8) !important;
    border-color: rgba(34, 197, 94, 0.4);
}

/* Theme Option Cards in settings */
.theme-option-card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.theme-option-card:has(input:checked) {
    border-color: var(--color-cyan) !important;
    background: rgba(6, 182, 212, 0.08) !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

/* WhatsApp Animated Sharing Button */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E, #34B7F1, #25D366);
    background-size: 300% 300%;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    animation: gradientShift 4s ease infinite, whatsappPulseGlow 2s infinite;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    transform: translateY(-1px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes whatsappPulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Header Statistics Strip */
.header-stats-strip {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: 20px;
}

.header-stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: default;
}

.header-stat-pill:hover {
    transform: translateY(-2px) scale(1.03);
    background: rgba(255, 255, 255, 0.07);
}

.header-stat-pill .label {
    color: var(--text-muted);
}

.header-stat-pill .count {
    font-weight: 800;
    font-size: 0.95rem;
    text-shadow: 0 0 8px currentColor;
    animation: pulseStat 2.5s infinite ease-in-out;
}

/* Accent Colors */
.header-stat-pill.mdb-stat {
    border-color: rgba(6, 182, 212, 0.25);
}
.header-stat-pill.mdb-stat .count {
    color: var(--color-cyan);
}

.header-stat-pill.nc-stat {
    border-color: rgba(245, 158, 11, 0.25);
}
.header-stat-pill.nc-stat .count {
    color: #f59e0b;
}

.header-stat-pill.nl-stat {
    border-color: rgba(217, 70, 239, 0.25);
}
.header-stat-pill.nl-stat .count {
    color: #d946ef;
}

@keyframes pulseStat {
    0%, 100% {
        opacity: 0.85;
        text-shadow: 0 0 6px currentColor;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 12px currentColor;
    }
}

/* --- WhatsApp Support Button on Login Page --- */
.whatsapp-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: wa-bounce 3s infinite ease-in-out;
}

.whatsapp-support-btn i {
    color: #25D366;
    font-size: 1.05rem;
}

.whatsapp-support-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
    color: #ffffff !important;
    text-decoration: none !important;
    border-color: rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #334155, #1e293b);
}

.whatsapp-support-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    transition: all 0.5s;
    opacity: 0;
}

.whatsapp-support-btn:hover::after {
    left: 120%;
    opacity: 1;
    transition: all 0.7s;
}

@keyframes wa-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}
