/* ============================================
   WEB RUNNER CONTROL DASHBOARD - CYBERPUNK THEME
   Enhanced sequel to NeuroForge
   ============================================ */

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

:root {
    --bg-primary: #000814;
    --bg-secondary: #001a1f;
    --bg-card: rgba(0, 31, 36, 0.85);
    --border-color: rgba(0, 255, 195, 0.25);
    --teal: #00ffc3;
    --teal-dark: #00d4a3;
    --cyan: #00e1ff;
    --text-primary: #eafffb;
    --text-secondary: #9df7ea;
    --text-muted: #5a8f87;
    --danger: #ff4d6d;
    --warning: #ffba08;
    --success: #06ffa5;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.screen {
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* ============================================
   ENHANCED ANIMATED BACKGROUND
   ============================================ */
.ai-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top, #0a2030 0%, #000814 50%, #000000 100%);
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.ai-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ai-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--teal);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(var(--tx));
        opacity: 0;
    }
}

.ai-grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 195, 0.03) 0px,
            transparent 1px,
            transparent 40px,
            rgba(0, 255, 195, 0.03) 41px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 255, 195, 0.03) 0px,
            transparent 1px,
            transparent 40px,
            rgba(0, 255, 195, 0.03) 41px
        );
    animation: grid-scan 15s linear infinite;
}

@keyframes grid-scan {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(40px);
    }
}

.data-stream {
    position: absolute;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(0, 255, 195, 0.3);
    white-space: nowrap;
    animation: stream-flow 10s linear infinite;
    letter-spacing: 1px;
}

@keyframes stream-flow {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: float-orb 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30vw, -20vh) scale(1.15);
    }
    66% {
        transform: translate(-20vw, 30vh) scale(0.85);
    }
}

/* ============================================
   ENHANCED LOGIN SCREEN
   ============================================ */
#loginScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-wrapper {
    width: 100%;
    max-width: 500px;
}

.login-container {
    background: rgba(0, 26, 31, 0.75);
    backdrop-filter: blur(25px);
    border: 2px solid var(--border-color);
    border-radius: 28px;
    padding: 3.5rem 3rem;
    box-shadow: 
        0 0 80px rgba(0, 255, 195, 0.15),
        inset 0 0 60px rgba(0, 255, 195, 0.03);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--teal), var(--cyan), transparent);
    animation: border-flow 4s linear infinite;
}

@keyframes border-flow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.login-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.neural-icon {
    width: 120px;
    height: 120px;
}

.logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 195, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 195, 0.8));
    }
}

.logo-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
}

.bracket {
    color: var(--teal);
    font-weight: 700;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 1.3rem 1.3rem 1.3rem 3.7rem;
    background: rgba(0, 12, 15, 0.7);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Space Mono', monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 25px rgba(0, 255, 195, 0.25);
    background: rgba(0, 12, 15, 0.9);
}

.input-group input::placeholder {
    color: var(--text-muted);
    letter-spacing: 2px;
}

.login-btn {
    width: 100%;
    padding: 1.4rem;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    border: none;
    border-radius: 14px;
    color: #000;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 255, 195, 0.35);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.login-btn:hover .btn-shine {
    left: 100%;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.status-indicator {
    width: 9px;
    height: 9px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--success);
    animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.error {
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: 300px;
    background: rgba(0, 12, 15, 0.9);
    backdrop-filter: blur(25px);
    border-right: 1.5px solid var(--border-color);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--teal), transparent);
    animation: glow-line 3s ease-in-out infinite;
}

@keyframes glow-line {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 195, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    color: var(--teal);
}

.logo-text h2 {
    font-size: 1.5rem;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    letter-spacing: 1px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    background: rgba(6, 255, 165, 0.1);
    border: 1px solid rgba(6, 255, 165, 0.3);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse-indicator 2s ease-in-out infinite;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-label {
    padding: 0 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-link:hover {
    background: rgba(0, 255, 195, 0.05);
    color: var(--teal);
}

.sidebar-link.active {
    background: rgba(0, 255, 195, 0.1);
    color: var(--teal);
    border-left: 3px solid var(--teal);
    box-shadow: inset 0 0 20px rgba(0, 255, 195, 0.1);
}

.sidebar-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-link.disabled:hover {
    background: transparent;
    color: var(--text-secondary);
}

.link-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.link-indicator {
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-link.active .link-indicator {
    opacity: 1;
    animation: pulse-indicator 2s ease-in-out infinite;
}

.link-badge {
    margin-left: auto;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 186, 8, 0.2);
    border: 1px solid rgba(255, 186, 8, 0.4);
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--warning);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stats-quick {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-mini {
    flex: 1;
    background: rgba(0, 31, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--teal);
    font-family: 'Space Mono', monospace;
}

.logout-btn {
    width: 100%;
    padding: 0.9rem;
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.3);
    border-radius: 10px;
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 77, 109, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.2);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
    max-height: 100vh;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb-home {
    font-size: 1.2rem;
}

.breadcrumb-current {
    color: var(--teal);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 31, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 195, 0.3);
}

.refresh-btn:active .refresh-icon {
    animation: spin 0.5s linear;
}

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

.content-section {
    animation: fadeIn 0.5s ease-in-out;
}

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

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 195, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.stat-icon-primary {
    background: rgba(0, 255, 195, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.2);
}

.stat-icon-success {
    background: rgba(6, 255, 165, 0.1);
    box-shadow: 0 0 20px rgba(6, 255, 165, 0.2);
}

.stat-icon-danger {
    background: rgba(255, 77, 109, 0.1);
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.2);
}

.stat-icon-warning {
    background: rgba(255, 186, 8, 0.1);
    box-shadow: 0 0 20px rgba(255, 186, 8, 0.2);
}

.stat-icon-info {
    background: rgba(0, 225, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.2);
}

.stat-icon-secondary {
    background: rgba(100, 100, 255, 0.1);
    box-shadow: 0 0 20px rgba(100, 100, 255, 0.2);
}

.stat-content {
    flex: 1;
}

.stat-content .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-content .stat-value {
    font-size: 20px !important;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
}

.stat-content .stat-value.small {
    font-size: 1.2rem;
}

.stat-online {
    color: var(--success);
}

.stat-offline {
    color: var(--danger);
}

/* ============================================
   SERVICES GRIDS
   ============================================ */
.services-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card-quick {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card-quick::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card-quick:hover::before {
    transform: scaleX(1);
}

.service-card-quick:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 195, 0.2);
}

.service-card-quick.offline {
    opacity: 0.7;
    border-color: rgba(255, 77, 109, 0.3);
}

.service-card-quick.offline::before {
    background: var(--danger);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--teal);
}

.service-url {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
}

.service-status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.service-status-badge.online {
    background: rgba(6, 255, 165, 0.15);
    color: var(--success);
    border: 1px solid rgba(6, 255, 165, 0.3);
}

.service-status-badge.offline {
    background: rgba(255, 77, 109, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 77, 109, 0.3);
}

.service-status-badge.checking {
    background: rgba(255, 186, 8, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 186, 8, 0.3);
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-indicator 2s ease-in-out infinite;
}

.service-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.metric-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
}

.metric-value.good {
    color: var(--success);
}

.metric-value.bad {
    color: var(--danger);
}

/* Detailed Services Grid */
.services-detailed-grid {
    display: grid;
    gap: 2rem;
}

.service-card-detailed {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.service-card-detailed.offline::before {
    background: var(--danger);
}

.service-card-detailed:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 40px rgba(0, 255, 195, 0.2);
}

.service-detailed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.service-detailed-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--teal);
}

.service-detailed-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detailed-metric {
    background: rgba(0, 12, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
}

.detailed-metric-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.detailed-metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
}

/* ============================================
   PLACEHOLDER SECTIONS
   ============================================ */
.placeholder-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    background: rgba(0, 31, 36, 0.4);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.placeholder-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--teal);
}

.placeholder-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 8, 20, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(0, 255, 195, 0.1);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loading-text {
    font-size: 1.1rem;
    color: var(--teal);
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1.5px solid var(--border-color);
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .nav-section {
        margin-bottom: 0;
    }

    .main-content {
        padding: 1.5rem;
    }

    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    #websiteAnalyticsSection .header-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .services-quick-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .login-container {
        padding: 2.5rem 2rem;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .service-metrics {
        grid-template-columns: 1fr;
    }

    .service-detailed-metrics {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-muted {
    color: var(--text-muted);
}

.glow-text {
    text-shadow: 0 0 10px currentColor;
}

/* Enhanced stat cards */
.stat-card-large {
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.9), rgba(0, 20, 30, 0.95));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.stat-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 255, 195, 0.25);
    border-color: rgba(0, 255, 195, 0.5);
}

.stat-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.success-theme::before {
    background: linear-gradient(90deg, #06ffa5, #00ffc3);
}

.info-theme::before {
    background: linear-gradient(90deg, #00e1ff, #00b4d8);
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Security gauge */
.security-gauge-svg {
    width: 120px;
    height: 120px;
}

.security-gauge-progress {
    transition: stroke-dashoffset 1s ease;
}

.gauge-grade {
    font-size: 36px;
    font-weight: 700;
    fill: var(--teal);
    font-family: 'Rajdhani', sans-serif;
}

.gauge-percent {
    font-size: 14px;
    fill: var(--text-secondary);
    font-family: 'Space Mono', monospace;
}

/* Activity feed */
.activity-feed {
    max-height: 300px;
    overflow-y: auto;
}

/* Custom scrollbar for activity feed */
.activity-feed::-webkit-scrollbar {
    width: 8px;
}

.activity-feed::-webkit-scrollbar-track {
    background: rgba(0, 255, 195, 0.05);
    border-radius: 4px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 195, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.activity-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 225, 255, 0.5);
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(0, 255, 195, 0.1);
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: rgba(0, 255, 195, 0.05);
}

.activity-icon {
    font-size: 1.5rem;
}

/* Quick actions */
.action-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover:not(.disabled) {
    background: rgba(0, 255, 195, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 195, 0.2);
}

.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Placeholder panels */
.placeholder-panel {
    background: rgba(0, 31, 36, 0.6);
    border: 2px dashed rgba(0, 255, 195, 0.3);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
}

.placeholder-panel .placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.placeholder-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 186, 8, 0.2);
    border: 1px solid rgba(255, 186, 8, 0.5);
    border-radius: 20px;
    color: var(--warning);
    font-weight: 700;
    letter-spacing: 1px;
    margin: 1rem 0;
}

.feature-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 1.5rem auto 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}
/* ============================================
   COMPACT SERVICE CARDS (Command Center)
   ============================================ */
.services-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-compact-card {
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.8), rgba(0, 20, 30, 0.9));
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-compact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    opacity: 0.5;
}

.service-compact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 195, 0.2);
    border-color: rgba(0, 255, 195, 0.4);
}

.service-compact-card.offline {
    border-color: rgba(255, 77, 109, 0.3);
}

.service-compact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-compact-icon {
    font-size: 2rem;
}

.service-compact-info {
    flex: 1;
}

.service-compact-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.service-compact-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.service-compact-status.online {
    color: var(--success);
}

.service-compact-status.offline {
    color: var(--danger);
}

.service-compact-status.checking {
    color: var(--warning);
}

.service-compact-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

.service-compact-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.compact-metric {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.compact-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.compact-metric-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   SECURITY CENTER STYLES
   ============================================ */
.security-overview-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.security-score-card {
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.9), rgba(0, 20, 30, 0.95));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.security-gauge-container {
    position: relative;
}

.security-score-info {
    text-align: center;
}

.security-score-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.security-score-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.security-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.security-stat {
    background: rgba(0, 31, 36, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.security-stat-icon {
    font-size: 2.5rem;
}

.security-stat-icon.success {
    filter: drop-shadow(0 0 10px rgba(6, 255, 165, 0.5));
}

.security-stat-icon.danger {
    filter: drop-shadow(0 0 10px rgba(255, 77, 109, 0.5));
}

.security-stat-icon.warning {
    filter: drop-shadow(0 0 10px rgba(255, 186, 8, 0.5));
}

.security-stat-data {
    text-align: center;
}

.security-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.security-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.security-services-section {
    margin-top: 3rem;
}

.section-subheader {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 255, 195, 0.2);
}

.security-services-grid {
    display: grid;
    gap: 2rem;
}

.security-service-card {
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.8), rgba(0, 20, 30, 0.9));
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.security-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 195, 0.15);
    border-color: rgba(0, 255, 195, 0.4);
}

.security-service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.security-service-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.security-service-info .service-url {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
}

.security-grade-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid;
}

.security-grade-badge.grade-aplus,
.security-grade-badge.grade-a {
    background: rgba(6, 255, 165, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.security-grade-badge.grade-b {
    background: rgba(0, 255, 195, 0.2);
    border-color: var(--teal);
    color: var(--teal);
}

.security-grade-badge.grade-c {
    background: rgba(255, 186, 8, 0.2);
    border-color: var(--warning);
    color: var(--warning);
}

.security-grade-badge.grade-d,
.security-grade-badge.grade-f {
    background: rgba(255, 77, 109, 0.2);
    border-color: var(--danger);
    color: var(--danger);
}

.security-score-bar {
    height: 6px;
    background: rgba(0, 255, 195, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.security-score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    transition: width 1s ease;
}

.security-checks-list {
    display: grid;
    gap: 1rem;
}

.security-check-item {
    background: rgba(0, 31, 36, 0.4);
    border-left: 3px solid;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.security-check-item:hover {
    background: rgba(0, 31, 36, 0.6);
    transform: translateX(5px);
}

.security-check-item.check-pass {
    border-color: var(--success);
}

.security-check-item.check-fail {
    border-color: var(--danger);
}

.security-check-item.check-warn {
    border-color: var(--warning);
}

.security-check-item.check-unknown {
    border-color: var(--text-muted);
}

.check-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.check-icon {
    font-size: 1.2rem;
}

.check-name {
    font-weight: 700;
    color: var(--text-primary);
}

.check-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 2rem;
}

.check-recommendation {
    font-size: 0.85rem;
    color: var(--warning);
    margin-top: 0.5rem;
    margin-left: 2rem;
    padding: 0.5rem;
    background: rgba(255, 186, 8, 0.1);
    border-radius: 4px;
}

/* ============================================
   SYSTEM LOGS STYLES
   ============================================ */
.log-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 255, 195, 0.2);
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .log-tabs {
        flex-direction: column;
    }
}

.log-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.log-tab:hover:not(.disabled) {
    background: rgba(0, 255, 195, 0.1);
    color: var(--text-primary);
}

.log-tab.active {
    background: rgba(0, 255, 195, 0.2);
    color: var(--teal);
}

.log-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.7rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--teal);
}

.log-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

select[disabled] {
  cursor: not-allowed;        /* shows the red circle */
  opacity: 0.6;               /* make it look visually disabled */
  background-color: #1a1a1a;  /* optional: darker bg */
  color: #888;                /* optional: dimmed text */
}

.log-tab-icon {
    font-size: 1.2rem;
}

.log-tab-badge {
    background: rgba(255, 186, 8, 0.2);
    color: var(--warning);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.log-viewer {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

/* Custom scrollbar for log viewer */
.log-viewer::-webkit-scrollbar {
    width: 8px;
}

.log-viewer::-webkit-scrollbar-track {
    background: rgba(0, 255, 195, 0.05);
    border-radius: 4px;
}

.log-viewer::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 195, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.log-viewer::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 225, 255, 0.5);
}

.log-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.log-entry {
    background: rgba(0, 31, 36, 0.6);
    border-left: 3px solid;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.log-entry:hover {
    background: rgba(0, 31, 36, 0.8);
    transform: translateX(3px);
}

.log-entry.log-info {
    border-color: var(--cyan);
}

.log-entry.log-success {
    border-color: var(--success);
}

.log-entry.log-warning {
    border-color: var(--warning);
}

.log-entry.log-error {
    border-color: var(--danger);
}

.log-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.log-icon {
    font-size: 1.2rem;
}

.log-time {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.log-message {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-left: 2rem;
}

.log-details {
    margin-left: 2rem;
    margin-top: 0.5rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.log-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-muted);
}

.log-empty .empty-icon {
    font-size: 4rem;
    opacity: 0.5;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: rgba(0, 31, 36, 0.95);
    border: 1px solid;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

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

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

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

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

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   COMMAND CENTER ADDITIONAL STYLES
   ============================================ */
.section-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 195, 0.2);
}

.section-title-group h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.action-btn-small {
    background: rgba(0, 255, 195, 0.15);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: var(--teal);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.action-btn-small:hover {
    background: rgba(0, 255, 195, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 195, 0.2);
}

.stats-grid-primary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 255, 195, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-value-xl {
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label-xl {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

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

.stat-trend.positive {
    color: var(--success);
}

.stat-trend.negative {
    color: var(--danger);
}

.command-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.command-panel {
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.8), rgba(0, 20, 30, 0.9));
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 195, 0.2);
}

.panel-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.live-badge {
    background: rgba(255, 77, 109, 0.2);
    color: var(--danger);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.action-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 186, 8, 0.2);
    color: var(--warning);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

.action-icon {
    font-size: 2rem;
}

.action-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.services-overview-section,
.health-section {
    margin-top: 3rem;
}

.section-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-subheader h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.view-all-btn {
    background: transparent;
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: var(--teal);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(0, 255, 195, 0.1);
    transform: translateX(3px);
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.health-metric {
    background: rgba(0, 31, 36, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.health-icon {
    font-size: 2.5rem;
}

.health-data {
    flex: 1;
}

.health-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.3rem;
}

.health-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.security-mini-progress {
    margin-top: 0.8rem;
    height: 4px;
    background: rgba(0, 255, 195, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.security-mini-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    transition: width 1s ease;
}

/* ============================================
   RESPONSIVE UPDATES
   ============================================ */
@media (max-width: 1200px) {
    .security-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .command-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid-primary {
        grid-template-columns: 1fr;
    }
    .refresh-all-text{
        display:none;
    }
    
    #analyticsSection .header-actions{
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .section-header-enhanced{
        flex-direction: column;
        gap: 20px;
    }
    .security-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ISSUES PANEL / MODAL
   ============================================ */
.issues-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.issues-panel.hidden {
    display: none;
}

.issues-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.issues-panel-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.98), rgba(0, 20, 30, 0.98));
    border: 2px solid rgba(0, 255, 195, 0.4);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 255, 195, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.issues-panel-header {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.15), rgba(0, 225, 255, 0.1));
    border-bottom: 2px solid rgba(0, 255, 195, 0.3);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.issues-panel-header h2 {
    font-size: 1.8rem;
    color: var(--teal);
    margin: 0;
}

.issues-close-btn {
    background: rgba(255, 77, 109, 0.2);
    border: 1px solid rgba(255, 77, 109, 0.4);
    color: var(--danger);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.issues-close-btn:hover {
    background: rgba(255, 77, 109, 0.3);
    transform: rotate(90deg);
}

.issues-panel-body {
    padding: 2rem;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
}

.issues-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 195, 0.2);
}

.issues-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.issues-count {
    background: rgba(0, 255, 195, 0.15);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: var(--teal);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.issues-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.issue-card {
    background: rgba(0, 31, 36, 0.6);
    border: 2px solid;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.issue-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.issue-critical {
    border-color: rgba(255, 77, 109, 0.5);
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.1), rgba(0, 31, 36, 0.6));
}

.issue-warning {
    border-color: rgba(255, 186, 8, 0.5);
    background: linear-gradient(135deg, rgba(255, 186, 8, 0.1), rgba(0, 31, 36, 0.6));
}

.issue-info {
    border-color: rgba(0, 225, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 225, 255, 0.1), rgba(0, 31, 36, 0.6));
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.issue-severity-badge {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.issue-critical .issue-severity-badge {
    color: var(--danger);
    border: 1px solid rgba(255, 77, 109, 0.4);
}

.issue-warning .issue-severity-badge {
    color: var(--warning);
    border: 1px solid rgba(255, 186, 8, 0.4);
}

.issue-info .issue-severity-badge {
    color: var(--cyan);
    border: 1px solid rgba(0, 225, 255, 0.4);
}

.issue-number {
    font-family: 'Space Mono', monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.issue-body {
    margin-bottom: 1rem;
}

.issue-service {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.issue-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.issue-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.8rem 0;
}

.issue-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}

.issue-url-icon {
    font-size: 1rem;
}

.issue-url a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.issue-url a:hover {
    color: var(--teal);
    text-decoration: underline;
}

.issue-recommendation {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 186, 8, 0.1);
    border-left: 3px solid var(--warning);
    border-radius: 8px;
}

.recommendation-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.recommendation-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.issue-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 195, 0.1);
}

.issue-timestamp {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
}

.issues-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.issues-empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.issues-empty h3 {
    font-size: 1.5rem;
    color: var(--success);
    margin-bottom: 0.5rem;
}

.issues-empty p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Clickable health metrics */
.clickable-metric {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-metric:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 195, 0.2);
    border-color: rgba(0, 255, 195, 0.4);
}

/* Scrollbar for issues panel */
.issues-panel-body::-webkit-scrollbar {
    width: 8px;
}

.issues-panel-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.issues-panel-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 195, 0.3);
    border-radius: 4px;
}

.issues-panel-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 195, 0.5);
}

@media (max-width: 768px) {
    .issues-panel-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .issues-panel-header {
        padding: 1.5rem;
    }
    
    .issues-panel-header h2 {
        font-size: 1.4rem;
    }
    
    .issues-panel-body {
        padding: 1rem;
    }
    
    .issue-card {
        padding: 1rem;
    }
}

/* ============================================
   PHASE 2: SERVER CONTROL STYLES
   ============================================ */

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.resource-card {
    background: rgba(10, 10, 30, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.resource-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.resource-icon {
    font-size: 24px;
}

.resource-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resource-value {
    font-size: 36px;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.resource-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.resource-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.resource-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cpu-fill {
    background: linear-gradient(90deg, #ff00ff, #ff0080);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

.mem-fill {
    background: linear-gradient(90deg, #00ffff, #0080ff);
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
}

.disk-fill {
    background: linear-gradient(90deg, #ffff00, #ff8000);
    box-shadow: 0 0 10px rgba(255, 128, 0, 0.5);
}

.resource-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   MULTI-SERVER CONTROL STYLES
   ============================================ */

.multiserver-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.multiserver-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.1);
    border-top-color: #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.multiserver-card {
    background: rgba(10, 10, 30, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.multiserver-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.multiserver-card:hover::before {
    opacity: 1;
}

.multiserver-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.15);
    transform: translateY(-4px);
}

.multiserver-card.error {
    border-color: rgba(255, 50, 50, 0.3);
    background: rgba(30, 10, 10, 0.7);
}

.multiserver-card.error:hover {
    border-color: rgba(255, 50, 50, 0.5);
    box-shadow: 0 8px 32px rgba(255, 50, 50, 0.15);
}

.multiserver-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.multiserver-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.multiserver-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px currentColor);
}

.multiserver-title-text h3 {
    font-size: 18px;
    color: #00ffff;
    margin: 0 0 4px 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.multiserver-title-text .server-hostname {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.multiserver-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.multiserver-badge.local {
    background: rgba(0, 255, 100, 0.15);
    color: #00ff66;
    border: 1px solid rgba(0, 255, 100, 0.3);
}

.multiserver-badge.remote {
    background: rgba(0, 150, 255, 0.15);
    color: #0096ff;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

.multiserver-badge.error {
    background: rgba(255, 50, 50, 0.15);
    color: #ff3232;
    border: 1px solid rgba(255, 50, 50, 0.3);
}

.multiserver-stats {
    display: grid;
    gap: 16px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid var(--border-color);
    padding: 10px;
}

.stat-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #00ffff;
}

.stat-bar-container {
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-top: 6px;
}

.stat-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Glowing Progress Bar Effects */
.stat-bar.cpu-bar {
    background: linear-gradient(90deg, #ff00ff 0%, #ff0080 50%, #ff00ff 100%);
    box-shadow:
        0 0 10px rgba(255, 0, 255, 0.5),
        0 0 20px rgba(255, 0, 128, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.stat-bar.mem-bar {
    background: linear-gradient(90deg, #00ffff 0%, #0080ff 50%, #00ffff 100%);
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 128, 255, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.stat-bar.disk-bar {
    background: linear-gradient(90deg, #ffff00 0%, #ff8000 50%, #ffff00 100%);
    box-shadow:
        0 0 10px rgba(255, 255, 0, 0.5),
        0 0 20px rgba(255, 128, 0, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Animated shine effect on progress bars */
.stat-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer-glow 2.5s infinite;
}

@keyframes shimmer-glow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Warning states for high usage */
.stat-bar.warning {
    background: linear-gradient(90deg, #ff8800 0%, #ff4400 50%, #ff8800 100%) !important;
    box-shadow:
        0 0 10px rgba(255, 136, 0, 0.6),
        0 0 20px rgba(255, 68, 0, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.1) !important;
}

.stat-bar.critical {
    background: linear-gradient(90deg, #ff0000 0%, #cc0000 50%, #ff0000 100%) !important;
    box-shadow:
        0 0 10px rgba(255, 0, 0, 0.7),
        0 0 20px rgba(204, 0, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.1) !important;
    animation: pulse-critical 1.5s infinite;
}

@keyframes pulse-critical {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.uptime-value {
    color: #00ff66 !important;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
    font-size: 20px !important;
}

.multiserver-error {
    text-align: center;
    padding: 20px;
}

.multiserver-error-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.multiserver-error-text {
    font-size: 14px;
    color: #ff3232;
    margin-bottom: 8px;
}

.multiserver-error-detail {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* Apache Control Section */
.apache-control-section {
    background: rgba(10, 10, 30, 0.4);
    border: 1px solid rgba(0, 255, 100, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.apache-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.apache-header h3 {
    font-size: 18px;
    color: #00ff00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apache-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.active {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.status-dot.inactive {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
}

.apache-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.server-ctrl-btn {
    flex: 1;
    padding: 10px 20px;
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.3);
    border-radius: 8px;
    color: #00ff00;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.server-ctrl-btn:hover {
    background: rgba(0, 255, 100, 0.2);
    border-color: rgba(0, 255, 100, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 100, 0.3);
    transform: translateY(-2px);
}

.apache-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.apache-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* PM2 Control Section */
.pm2-control-section {
    background: rgba(10, 10, 30, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.pm2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pm2-header h3 {
    font-size: 18px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pm2-actions {
    display: flex;
    gap: 10px;
}

.pm2-btn {
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    color: #00ffff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pm2-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.pm2-btn.danger {
    background: rgba(255, 0, 80, 0.1);
    border-color: rgba(255, 0, 80, 0.3);
    color: #ff0050;
}

.pm2-btn.danger:hover {
    background: rgba(255, 0, 80, 0.2);
    border-color: rgba(255, 0, 80, 0.6);
    box-shadow: 0 0 15px rgba(255, 0, 80, 0.3);
}

/* PM2 Table */
.pm2-table-container {
    overflow-x: auto;
}

.pm2-table {
    width: 100%;
    border-collapse: collapse;
}

.pm2-table thead {
    background: rgba(0, 255, 255, 0.1);
}

.pm2-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.pm2-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.pm2-table tbody tr:hover {
    background: rgba(0, 255, 255, 0.05);
}

.pm2-table td {
    padding: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.process-name {
    font-weight: 600;
    color: #fff;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.status-badge.online {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-badge.stopped {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    border: 1px solid rgba(255, 255, 0, 0.3);
}

.status-badge.errored {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.loading-cell, .error-cell, .empty-cell {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.pm2-row.online {
    border-left: 3px solid #00ff00;
}

.pm2-row.offline {
    border-left: 3px solid #ff0000;
}

/* EC2 Control Section */
.ec2-control-section {
    background: rgba(10, 10, 30, 0.4);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: 12px;
    padding: 25px;
}

.ec2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ec2-header h3 {
    font-size: 18px;
    color: #ffc800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ec2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ec2-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ec2-card:hover {
    border-color: rgba(255, 200, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.2);
    transform: translateY(-2px);
}

.ec2-card.running {
    border-left: 4px solid #00ff00;
}

.ec2-card.stopped {
    border-left: 4px solid #ff0000;
}

.ec2-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ec2-icon {
    font-size: 24px;
}

.ec2-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.ec2-details {
    margin-bottom: 15px;
}

.ec2-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.ec2-detail-row .label {
    color: rgba(255, 255, 255, 0.6);
}

.ec2-detail-row .value {
    color: rgba(255, 255, 255, 0.9);
    font-family: monospace;
}

.ec2-state-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.ec2-state-badge.running {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.4);
}

.ec2-state-badge.stopped {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.4);
}

.ec2-state-badge.stopping,
.ec2-state-badge.pending {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    border: 1px solid rgba(255, 255, 0, 0.4);
}

.ec2-actions {
    display: flex;
    gap: 10px;
}

.ec2-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 6px;
    color: #ffc800;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ec2-btn:hover:not(:disabled) {
    background: rgba(255, 200, 0, 0.2);
    border-color: rgba(255, 200, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 200, 0, 0.3);
}

.ec2-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ec2-loading,
.ec2-empty {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.ec2-empty p {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.ec2-empty small {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .server-grid {
        grid-template-columns: 1fr;
    }
    
    .apache-header,
    .pm2-header,
    .ec2-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .apache-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .pm2-table {
        font-size: 12px;
    }
    
    .pm2-table th,
    .pm2-table td {
        padding: 8px;
    }
    
    .ec2-grid {
        grid-template-columns: 1fr;
    }
}

/* === SSH TERMINAL === */
.terminal-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}
.terminal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.terminal-card {
  background: rgba(10, 10, 30, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
}
.terminal-card-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--cyan);
}
.terminal-form .terminal-label {
  font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
}
.terminal-select {
  width: 100%;
  margin: 8px 0 12px;
  background: rgba(0, 12, 15, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 10px;
}
.terminal-row { display:flex; gap:10px; }
.terminal-note { color: var(--text-muted); display:block; margin-top:8px; }
.terminal-snippets, .terminal-history {
  max-height: 240px; overflow: auto; display: grid; gap: 8px;
}

/* Custom scrollbar for terminal snippets and history */
.terminal-snippets::-webkit-scrollbar,
.terminal-history::-webkit-scrollbar {
  width: 6px;
}

.terminal-snippets::-webkit-scrollbar-track,
.terminal-history::-webkit-scrollbar-track {
  background: rgba(0, 255, 195, 0.05);
  border-radius: 3px;
}

.terminal-snippets::-webkit-scrollbar-thumb,
.terminal-history::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 195, 0.3);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.terminal-snippets::-webkit-scrollbar-thumb:hover,
.terminal-history::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 225, 255, 0.5);
}

.snippet-item, .history-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0,255,195,0.2);
  color: var(--text-secondary);
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.snippet-item:hover, .history-item:hover {
  background: rgba(0, 255, 195, 0.08);
}
.terminal-main {
  background: #000; border: 1px solid rgba(0,255,195,0.25); border-radius: 12px;
  box-shadow: inset 0 0 40px rgba(0,255,195,0.08);
  padding: 10px; position: relative; min-height: 480px;
}
.xterm-container { width: 100%; height: 70vh; }

/* Custom scrollbar for xterm terminal */
.xterm .xterm-viewport::-webkit-scrollbar {
  width: 8px;
}

.xterm .xterm-viewport::-webkit-scrollbar-track {
  background: rgba(0, 255, 195, 0.05);
  border-radius: 4px;
}

.xterm .xterm-viewport::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 195, 0.3);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.xterm .xterm-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 225, 255, 0.5);
}

/* ============================================================
   📱 SSH Terminal Responsive Adjustments
   Keeps desktop grid, stacks cleanly on smaller screens
   ============================================================ */

/* Tablet and smaller (≤ 1024px) */
@media (max-width: 1024px) {
  .terminal-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .terminal-sidebar {
    width: 100%;
    order: 1;
  }

  .terminal-main {
    order: 2;
    min-height: 55vh;
  }

  .xterm-container {
    height: 55vh !important;
  }

  .terminal-card {
    padding: 12px;
  }

  .terminal-select {
    font-size: 14px;
    padding: 8px;
  }

  .terminal-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  #sshConnectBtn, #sshDisconnectBtn {
    flex: 1;
    width: 48%;
    font-size: 14px;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .terminal-wrap {
    flex-direction: column;
    gap: 12px;
  }

  .terminal-sidebar {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .terminal-card {
    padding: 10px;
  }

  .terminal-main {
    min-height: 45vh;
  }

  .xterm-container {
    height: 45vh !important;
  }

  .snippet-item,
  .history-item {
    font-size: 12px;
    padding: 6px 8px;
  }

  .terminal-select {
    font-size: 13px;
  }

  #sshConnectBtn, #sshDisconnectBtn {
    width: 100%;
    font-size: 13px;
  }
}

/* Extra small (≤ 500px) */
@media (max-width: 500px) {
  .terminal-main {
    min-height: 40vh;
  }

  .xterm-container {
    height: 40vh !important;
  }

  .snippet-item,
  .history-item {
    font-size: 11px;
    padding: 5px 6px;
  }

  .terminal-card-title {
    font-size: 14px;
  }
}

/* ============================================
   ANALYTICS SECTION STYLES
   ============================================ */

.time-range-select {
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.2);
    color: #0cf;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-range-select:hover {
    background: rgba(0, 255, 195, 0.1);
    border-color: #00ffc3;
}

.analytics-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.analytics-metric-card {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.05), rgba(0, 225, 255, 0.05));
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.analytics-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffc3, #00e1ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.analytics-metric-card:hover {
    border-color: #00ffc3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 195, 0.15);
}

.analytics-metric-card:hover::before {
    opacity: 1;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.metric-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 195, 0.5));
}

.metric-label {
    color: rgba(0, 255, 195, 0.7);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: #00ffc3;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1;
    margin: 8px 0;
    text-shadow: 0 0 20px rgba(0, 255, 195, 0.3);
}

.metric-change {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
}

.metric-change.positive {
    color: #0f3;
}

.metric-change.negative {
    color: #f55;
}

.metric-sparkline {
    height: 40px;
    margin-top: 12px;
    opacity: 0.7;
}

.analytics-charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.analytics-chart-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-card-header h3 {
    color: #00ffc3;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.chart-container {
    position: relative;
    height: 300px;
}

.analytics-table-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-card-header h3 {
    color: #00ffc3;
    font-size: 18px;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-search {
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.2);
    color: #0cf;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    width: 200px;
}

.table-search::placeholder {
    color: rgba(0, 255, 195, 0.4);
}

.table-filter {
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.2);
    color: #0cf;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    cursor: pointer;
}

.analytics-table-scroll {
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.analytics-table thead th {
    background: rgba(0, 255, 195, 0.1);
    color: #00ffc3;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid rgba(0, 255, 195, 0.3);
    white-space: nowrap;
}

.analytics-table tbody td {
    color: rgba(255, 255, 255, 0.8);
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 255, 195, 0.1);
}

.analytics-table tbody tr {
    transition: all 0.2s ease;
}

.analytics-table tbody tr:hover {
    background: rgba(0, 255, 195, 0.05);
}

.service-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-icon {
    font-size: 18px;
}

.table-action-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: #0cf;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table-action-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    border-color: #00ffc3;
    transform: translateY(-1px);
}

.table-loading {
    text-align: center;
    color: rgba(0, 255, 195, 0.6);
    padding: 40px 20px;
    font-style: italic;
}

.analytics-heatmap-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.heatmap-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.heatmap-container {
    margin-top: 20px;
    overflow-x: auto;
}

.heatmap-grid {
    display: flex;
    gap: 15px;
    min-width: fit-content;
}

.heatmap-labels {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.heatmap-label {
    height: 30px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    white-space: nowrap;
}

.heatmap-days {
    display: flex;
    gap: 2px;
    flex: 1;
}

.heatmap-day-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.heatmap-cell {
    width: 20px;
    height: 30px;
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.heatmap-cell.perfect {
    background: #0f3;
}

.heatmap-cell.good {
    background: #0cf;
}

.heatmap-cell.fair {
    background: #fc0;
}

.heatmap-cell.poor {
    background: #f60;
}

.heatmap-cell.critical {
    background: #f33;
}

.heatmap-cell:hover {
    transform: scale(1.2);
    z-index: 10;
    box-shadow: 0 0 12px rgba(0, 255, 195, 0.5);
}

.analytics-insights-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.insights-header h3 {
    color: #00ffc3;
    font-size: 18px;
    font-weight: 600;
}

.insight-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: #0cf;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.insight-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    border-color: #00ffc3;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.insight-card {
    display: flex;
    gap: 15px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 195, 0.2);
    background: rgba(0, 255, 195, 0.03);
    transition: all 0.2s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 195, 0.1);
}

.insight-card.insight-success {
    border-left: 3px solid #0f3;
}

.insight-card.insight-warning {
    border-left: 3px solid #fc0;
}

.insight-card.insight-info {
    border-left: 3px solid #0cf;
}

.insight-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.insight-content h4 {
    color: #00ffc3;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

.insight-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.insight-action-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: #0cf;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.insight-action-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    border-color: #00ffc3;
}

.insight-loading,
.no-insights {
    text-align: center;
    color: rgba(0, 255, 195, 0.6);
    padding: 40px 20px;
    font-style: italic;
}

/* ============================================
   ALERT CENTER / NOTIFICATIONS STYLES
   ============================================ */

.alert-stats {
    display: flex;
    gap: 15px;
    margin-right: auto;
}

.alert-stat {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid;
}

.alert-stat.critical {
    background: rgba(255, 85, 85, 0.1);
    border-color: rgba(255, 85, 85, 0.3);
    color: #f55;
}

.alert-stat.warning {
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(255, 204, 0, 0.3);
    color: #fc0;
}

.alert-stat.info {
    background: rgba(0, 207, 255, 0.1);
    border-color: rgba(0, 207, 255, 0.3);
    color: #0cf;
}

.alert-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0, 255, 195, 0.1);
    padding-bottom: 0;
}

.alert-tab {
    background: none;
    border: none;
    color: rgba(0, 255, 195, 0.6);
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-tab:hover {
    color: #00ffc3;
    background: rgba(0, 255, 195, 0.05);
}

.alert-tab.active {
    color: #00ffc3;
    border-bottom-color: #00ffc3;
}

.alert-tab-content {
    display: none;
}

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

/* Alert Feed */
.alert-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.feed-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.2);
    color: rgba(0, 255, 195, 0.7);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: rgba(0, 255, 195, 0.1);
    color: #00ffc3;
}

.filter-btn.active {
    background: rgba(0, 255, 195, 0.15);
    border-color: #00ffc3;
    color: #00ffc3;
}

.filter-count {
    background: rgba(0, 255, 195, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.feed-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: #0cf;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    border-color: #00ffc3;
}

.alert-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    gap: 15px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 195, 0.2);
    background: rgba(10, 15, 25, 0.6);
    transition: all 0.3s ease;
}

.alert-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 255, 195, 0.1);
}

.alert-item.unread {
    border-left-width: 3px;
    background: rgba(0, 255, 195, 0.05);
}

.alert-item.critical {
    border-left-color: #f55;
}

.alert-item.warning {
    border-left-color: #fc0;
}

.alert-item.info {
    border-left-color: #0cf;
}

.alert-item.resolved {
    opacity: 0.5;
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.alert-title {
    color: #00ffc3;
    font-weight: 600;
    font-size: 15px;
}

.alert-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    white-space: nowrap;
}

.alert-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.alert-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(0, 255, 195, 0.6);
}

.alert-service,
.alert-rule {
    background: rgba(0, 255, 195, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.alert-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.alert-action-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: #0cf;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-action-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    border-color: #00ffc3;
    transform: scale(1.1);
}

.alert-resolved-badge {
    background: rgba(0, 255, 51, 0.2);
    color: #0f3;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 51, 0.3);
}

.alert-feed-empty,
.alert-feed-loading {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-text {
    color: rgba(0, 255, 195, 0.6);
    font-size: 16px;
}

/* Alert Rules */
.rules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rules-header h3 {
    color: #00ffc3;
    font-size: 18px;
    font-weight: 600;
}

.create-rule-btn {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.2), rgba(0, 225, 255, 0.2));
    border: 1px solid #00ffc3;
    color: #00ffc3;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-rule-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 195, 0.3);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.alert-rule-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.alert-rule-card:hover {
    border-color: #00ffc3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 195, 0.1);
}

.alert-rule-card.disabled {
    opacity: 0.5;
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.rule-info h4 {
    color: #00ffc3;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.rule-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
}

.rule-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: relative;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    transition: .4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: .4s;
    border-radius: 50%;
}

.rule-toggle input:checked + .toggle-slider {
    background-color: rgba(0, 255, 195, 0.3);
    border-color: #00ffc3;
}

.rule-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: #00ffc3;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.5);
}

.rule-conditions {
    margin: 15px 0;
    padding: 12px;
    background: rgba(0, 255, 195, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 195, 0.1);
}

.rule-condition {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 6px 0;
}

.rule-condition strong {
    color: #00ffc3;
    margin-right: 8px;
}

.severity-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.severity-badge.critical {
    background: rgba(255, 85, 85, 0.2);
    color: #f55;
    border: 1px solid rgba(255, 85, 85, 0.3);
}

.severity-badge.warning {
    background: rgba(255, 204, 0, 0.2);
    color: #fc0;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.severity-badge.info {
    background: rgba(0, 207, 255, 0.2);
    color: #0cf;
    border: 1px solid rgba(0, 207, 255, 0.3);
}

.rule-stats {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.rule-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.edit-rule-btn,
.delete-rule-btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-rule-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: #0cf;
}

.edit-rule-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    border-color: #00ffc3;
}

.delete-rule-btn {
    background: rgba(255, 85, 85, 0.1);
    border: 1px solid rgba(255, 85, 85, 0.3);
    color: #f55;
}

.delete-rule-btn:hover {
    background: rgba(255, 85, 85, 0.2);
    border-color: #f55;
}

.rules-loading,
.no-rules {
    text-align: center;
    color: rgba(0, 255, 195, 0.6);
    padding: 40px 20px;
    font-style: italic;
}

/* Integrations */
.integrations-header {
    margin-bottom: 25px;
}

.integrations-header h3 {
    color: #00ffc3;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.integrations-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.integration-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.integration-card:hover {
    border-color: #00ffc3;
    box-shadow: 0 6px 20px rgba(0, 255, 195, 0.1);
}

.integration-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.integration-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 8px;
    flex-shrink: 0;
}

.integration-icon.slack {
    background: linear-gradient(135deg, rgba(74, 21, 75, 0.3), rgba(53, 31, 91, 0.3));
}

.integration-icon.email {
    background: linear-gradient(135deg, rgba(219, 68, 55, 0.3), rgba(209, 72, 54, 0.3));
}

.integration-icon.webhook {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.2), rgba(0, 225, 255, 0.2));
}

.integration-info {
    flex: 1;
}

.integration-info h4 {
    color: #00ffc3;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.integration-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.integration-status {
    flex-shrink: 0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

.status-badge.connected {
    background: rgba(0, 255, 51, 0.1);
    border-color: rgba(0, 255, 51, 0.3);
    color: #0f3;
}

.status-badge.disconnected {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.integration-config {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.config-field label {
    display: block;
    color: rgba(0, 255, 195, 0.8);
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
}

.config-field input,
.config-field select {
    width: 100%;
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.2);
    color: #0cf;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    transition: all 0.2s ease;
}

.config-field input:focus,
.config-field select:focus {
    outline: none;
    border-color: #00ffc3;
    background: rgba(0, 255, 195, 0.08);
}

.config-actions {
    display: flex;
    gap: 10px;
}

.test-btn,
.save-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: #0cf;
}

.test-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    border-color: #00ffc3;
}

.save-btn {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.2), rgba(0, 225, 255, 0.2));
    border: 1px solid #00ffc3;
    color: #00ffc3;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 195, 0.3);
}

.preferences-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.preferences-card h3 {
    color: #00ffc3;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.preferences-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preference-item {
    padding: 16px;
    background: rgba(0, 255, 195, 0.03);
    border: 1px solid rgba(0, 255, 195, 0.1);
    border-radius: 8px;
}

.preference-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-top: 6px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-text {
    color: #00ffc3;
    font-weight: 600;
    font-size: 14px;
}

.quiet-hours-config {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.15);
    border-radius: 6px;
}

.time-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-range input[type="time"] {
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.2);
    color: #0cf;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
}

.time-range span {
    color: rgba(255, 255, 255, 0.6);
}

/* History Tab */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.history-header h3 {
    color: #00ffc3;
    font-size: 18px;
    font-weight: 600;
}

.history-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-input {
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.2);
    color: #0cf;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
}

.filter-apply-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: #0cf;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-apply-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    border-color: #00ffc3;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.history-stat-card {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.05), rgba(0, 225, 255, 0.05));
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-label {
    color: rgba(0, 255, 195, 0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    color: #00ffc3;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    gap: 15px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 195, 0.2);
    background: rgba(10, 15, 25, 0.6);
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: #00ffc3;
    transform: translateX(4px);
}

.history-time {
    color: rgba(0, 255, 195, 0.6);
    font-size: 12px;
    white-space: nowrap;
}

.history-content {
    flex: 1;
    display: flex;
    gap: 12px;
}

.history-icon {
    font-size: 20px;
}

.history-details {
    flex: 1;
}

.history-title {
    color: #00ffc3;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.history-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 6px;
}

.history-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.history-loading,
.no-history {
    text-align: center;
    color: rgba(0, 255, 195, 0.6);
    padding: 40px 20px;
    font-style: italic;
}

/* Responsive Analytics & Alerts */
@media (max-width: 1200px) {
    .analytics-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .analytics-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-stats {
        flex-direction: row;
        gap: 8px;
    }
    
    .alert-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        flex-direction: column;
    }
    
    .integrations-grid,
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .feed-filters {
        justify-content: center;
    }
    .feed-actions{
        justify-content: center;
        width: 100%;
    }
    .heatmap-container {
        overflow-x: scroll;
    }
    .history-filters{
        flex-direction: row;
        flex-wrap: wrap;
    }
    .history-badge {
        align-self: flex-start;
    }
    .analytics-chart-card {
        max-width: 88vw;
    }
}

/* Bell Icon in Header */
.bell-icon-btn {
    position: relative;
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.form-field .toggle-slider{
    display:none;
}

.bell-icon-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    border-color: #00ffc3;
    transform: translateY(-2px);
}

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f55;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 85, 85, 0.5);
}

/* Rule Modal */
.rule-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.rule-modal {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.95), rgba(15, 20, 30, 0.95));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 255, 195, 0.2);
}

.rule-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 255, 195, 0.2);
}

.rule-modal-header h3 {
    color: #00ffc3;
    font-size: 20px;
    font-weight: 600;
}

.rule-modal-close {
    background: none;
    border: none;
    color: #0cf;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.rule-modal-close:hover {
    background: rgba(0, 255, 195, 0.1);
    color: #00ffc3;
}

.rule-form {
    padding: 24px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    color: rgba(0, 255, 195, 0.8);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field input[type="text"],
.form-field textarea,
.form-field select {
    width: 100%;
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.2);
    color: #0cf;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #00ffc3;
    background: rgba(0, 255, 195, 0.08);
}

.form-field textarea {
    min-height: 80px;
    resize: vertical;
}

.form-field small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 6px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 195, 0.1);
}

.cancel-btn,
.save-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.save-btn {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.2), rgba(0, 225, 255, 0.2));
    border: 1px solid #00ffc3;
    color: #00ffc3;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 195, 0.3);
}

/* ============================================
   ADD THIS TO style.css - Alert History Styles
   ============================================ */

.history-date-group {
    margin-bottom: 30px;
}

.history-date {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 255, 195, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 255, 195, 0.2);
}

.history-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: rgba(0, 255, 195, 0.03);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(0, 255, 195, 0.08);
    border-color: rgba(0, 255, 195, 0.4);
    transform: translateX(5px);
}

.history-item.resolved {
    opacity: 0.6;
}

.history-item.critical {
    border-left: 4px solid #f55;
}

.history-item.warning {
    border-left: 4px solid #fa0;
}

.history-item.info {
    border-left: 4px solid #0cf;
}

.history-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.history-content {
    flex: 1;
}

.history-title {
    color: #0cf;
    font-weight: 600;
    margin-bottom: 5px;
}

.history-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.history-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.history-badge.resolved {
    background: rgba(0, 255, 195, 0.2);
    color: #0f8;
}

.history-badge.active {
    background: rgba(255, 170, 0, 0.2);
    color: #fa0;
}

.history-empty {
    text-align: center;
    padding: 60px 20px;
}

.history-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.history-empty .empty-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

/* ============================================
   ALERT CONDITION HELPER STYLES
   Add this to the END of your style.css file
   ============================================ */

/* Main Container */
.condition-helper {
    margin-top: 10px;
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 255, 195, 0.03);
}

/* Toggle Button */
.condition-help-toggle {
    width: 100%;
    background: rgba(0, 255, 195, 0.05);
    border: none;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(0, 255, 195, 0.9);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Space Mono', monospace;
}

.condition-help-toggle:hover {
    background: rgba(0, 255, 195, 0.1);
    color: #00ffc3;
    box-shadow: 0 0 15px rgba(0, 255, 195, 0.1);
}

.condition-help-toggle .help-icon {
    font-size: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.condition-help-toggle .toggle-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Help Content Container */
.condition-help-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

.condition-help-content.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Help Sections */
.help-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 195, 0.1);
}

.help-section:last-of-type {
    border-bottom: none;
}

.help-section h4 {
    color: #00ffc3;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Example Items */
.help-examples {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-example {
    background: rgba(0, 255, 195, 0.05);
    border-left: 3px solid rgba(0, 255, 195, 0.3);
    padding: 10px 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.help-example:hover {
    background: rgba(0, 255, 195, 0.15);
    border-left-color: #00ffc3;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 255, 195, 0.2);
}

.help-example:hover::before {
    content: '👆 Click to use';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 195, 0.2);
    color: #00ffc3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.help-example code {
    background: rgba(0, 255, 195, 0.1);
    color: #0cf;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(0, 255, 195, 0.2);
}

.help-example span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.5;
}

/* Operator Grid */
.operator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.operator-item {
    background: rgba(0, 255, 195, 0.05);
    padding: 10px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    border: 1px solid rgba(0, 255, 195, 0.2);
    transition: all 0.2s ease;
}

.operator-item:hover {
    background: rgba(0, 255, 195, 0.1);
    border-color: rgba(0, 255, 195, 0.4);
    transform: translateY(-2px);
}

.operator-item code {
    background: rgba(0, 255, 195, 0.15);
    color: #0cf;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid rgba(0, 255, 195, 0.3);
}

.operator-item span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

/* Pro Tips Section */
.help-tips {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.1), rgba(0, 225, 255, 0.05));
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.tip-icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

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

.tip-content {
    flex: 1;
}

.tip-content strong {
    color: #00ffc3;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.tip-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-content li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.tip-content li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(0, 255, 195, 0.6);
    font-weight: bold;
}

.tip-content code {
    background: rgba(0, 255, 195, 0.15);
    color: #0cf;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    border: 1px solid rgba(0, 255, 195, 0.2);
}

/* Custom Scrollbar */
.condition-help-content::-webkit-scrollbar {
    width: 8px;
}

.condition-help-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.condition-help-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 195, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.condition-help-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 195, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .operator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .help-tips {
        flex-direction: column;
        text-align: center;
    }
    
    .tip-icon {
        font-size: 48px;
    }
}

/* ============================================
   FINANCE SECTION STYLES
   ============================================ */

/* Balance Banner */
.balance-banner {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.15), rgba(0, 225, 255, 0.15));
    border: 2px solid #00ffc3;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 255, 195, 0.2);
}

.balance-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.balance-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #00ffc3;
    text-shadow: 0 0 20px rgba(0, 255, 195, 0.5);
}

.balance-edit-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid #00ffc3;
    color: #00ffc3;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.balance-edit-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    transform: translateY(-2px);
}

/* Finance Metrics Grid */
.finance-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.finance-metric-card {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 30, 60, 0.95));
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s;
}

.finance-metric-card:hover {
    border-color: #00ffc3;
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.3);
    transform: translateY(-2px);
}

.metric-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 195, 0.1);
    border-radius: 10px;
}

.metric-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ffc3;
}

.metric-detail {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* Finance Tabs */
.finance-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 255, 195, 0.2);
}

.finance-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
}

.finance-tab-btn:hover {
    color: #00ffc3;
}

.finance-tab-btn.active {
    color: #00ffc3;
}

.finance-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00ffc3;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.5);
}

.finance-tab-content {
    display: none;
}

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

/* Finance Grid */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.finance-panel {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 30, 60, 0.95));
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
}

.finance-panel h3 {
    color: #00ffc3;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.chart-panel {
    min-height: 350px;
}

.chart-panel canvas {
    max-height: 300px !important;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(0, 255, 195, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 195, 0.2);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    color: #00ffc3;
    font-weight: 600;
}

/* Transactions */
.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.transaction-filters {
    display: flex;
    gap: 1rem;
}

.transaction-filters select,
.transaction-filters input {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.transactions-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.transaction-row {
    display: grid;
    grid-template-columns: 100px 2fr 1.5fr 120px 150px 100px;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 5px;
    align-items: center;
}

.transaction-row.header {
    background: rgba(0, 255, 195, 0.15);
    font-weight: 600;
    color: #00ffc3;
}

.txn-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.txn-type.income {
    background: rgba(0, 255, 195, 0.2);
    color: #00ffc3;
}

.txn-type.expense {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.txn-amount {
    font-weight: 600;
}

.txn-amount.income {
    color: #00ffc3;
}

.txn-amount.expense {
    color: #ff4757;
}

.txn-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    transform: translateY(-2px);
}

.icon-btn.danger {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
}

.icon-btn.danger:hover {
    background: rgba(255, 71, 87, 0.2);
}

/* Recurring Sections */
.recurring-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.recurring-section {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 30, 60, 0.95));
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
}

.recurring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.recurring-header h3 {
    color: #00ffc3;
    font-size: 1.2rem;
}

.add-recurring-btn {
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid #00ffc3;
    color: #00ffc3;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-recurring-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    transform: translateY(-2px);
}

.recurring-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.recurring-card {
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.3s;
}

.recurring-card.inactive {
    opacity: 0.5;
    border-color: rgba(255, 255, 255, 0.2);
}

.recurring-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 195, 0.2);
}

.recurring-card .recurring-header {
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.recurring-status {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.recurring-status.active {
    background: rgba(0, 255, 195, 0.2);
    color: #00ffc3;
}

.recurring-status.inactive {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.recurring-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.recurring-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ffc3;
}

.recurring-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.recurring-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.recurring-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.recurring-actions {
    display: flex;
    gap: 0.5rem;
}

/* Upcoming Bills */
.upcoming-bills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.upcoming-summary {
    background: rgba(0, 255, 195, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 195, 0.3);
}

.upcoming-summary strong {
    color: #00ffc3;
    font-size: 1.2rem;
}

.upcoming-bills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bill-card {
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.3s;
}

.bill-card.urgent {
    border-color: #ff4757;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
}

.bill-card.warning {
    border-color: #ffa502;
}

.bill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 195, 0.2);
}

.bill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bill-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffc3;
}

.bill-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.bill-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bill-due {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.bill-countdown {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(0, 255, 195, 0.2);
    color: #00ffc3;
    font-weight: 600;
    font-size: 0.85rem;
}

.bill-countdown.urgent {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.bill-countdown.warning {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
}

/* Modal Styles for Finance */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.98), rgba(0, 30, 60, 0.98));
    border: 2px solid #00ffc3;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 255, 195, 0.5);
}

.modal-content.small {
    max-width: 400px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 195, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #00ffc3;
    font-size: 1.5rem;
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #00ffc3;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.3);
    color: #fff;
    padding: 0.8rem;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffc3;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.3);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.date-inputs {
    display: flex;
    gap: 1rem;
}

.date-inputs select,
.date-inputs input {
    flex: 1;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.modal-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.modal-btn.primary {
    background: #00ffc3;
    color: #000a14;
    font-weight: 600;
}

.modal-btn.primary:hover {
    background: #00e1ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 195, 0.3);
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

select, select option {
  background-color: #0a0a1a; /* dark background */
  color: #00ffc3;           /* bright text color */
}

/* Empty/Loading Messages */
.empty-message,
.loading-message,
.error-message {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

.error-message {
    color: #ff4757;
}

/* Responsive */
@media (max-width: 1200px) {
    .finance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .balance-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .finance-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .finance-tabs {
        flex-wrap: wrap;
        flex-direction: column;
    }
    
    .transaction-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .transactions-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .transaction-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .recurring-list {
        grid-template-columns: 1fr;
    }
    
    .upcoming-bills-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ENHANCED ANALYTICS STYLES
   ============================================ */

/* Incident Cards */
.incident-card {
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.incident-card.incident-ongoing {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
}

.incident-card.incident-resolved {
    border-color: rgba(0, 255, 195, 0.3);
    opacity: 0.7;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.incident-service {
    font-weight: 600;
    color: #00ffc3;
}

.incident-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.incident-time,
.incident-duration,
.incident-checks {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.3rem;
}

.no-incidents {
    text-align: center;
    padding: 2rem;
    color: #00ffc3;
    font-size: 1.1rem;
}

/* SSL Status Cards */
.ssl-card {
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ssl-card.ssl-critical {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
}

.ssl-card.ssl-warning {
    border-color: #ffa502;
    background: rgba(255, 165, 2, 0.05);
}

.ssl-card.ssl-good {
    border-color: rgba(0, 255, 195, 0.3);
}

.ssl-service {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.ssl-expiry {
    font-size: 1.1rem;
    color: #00ffc3;
    margin: 0.5rem 0;
}

.ssl-expiry strong {
    font-size: 1.5rem;
}

.ssl-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-ssl-data {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Health Score Bar */
.health-score {
    position: relative;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #00ffc3, #00e1ff);
    transition: width 0.3s;
}

.health-score span {
    position: relative;
    z-index: 1;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.health-score.health-excellent .health-bar {
    background: linear-gradient(90deg, #00ffc3, #00ff88);
}

.health-score.health-good .health-bar {
    background: linear-gradient(90deg, #ffa502, #ffca28);
}

.health-score.health-poor .health-bar {
    background: linear-gradient(90deg, #ff4757, #ff6348);
}

/* Uptime Badge */
.uptime-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.uptime-badge.uptime-excellent {
    background: rgba(0, 255, 195, 0.2);
    color: #00ffc3;
}

.uptime-badge.uptime-good {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
}

.uptime-badge.uptime-poor {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

/* Response Time Display */
.response-time {
    font-weight: 600;
    color: #fff;
}

.response-range {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Incident Badge */
.incident-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.incident-badge.no-incidents {
    background: rgba(0, 255, 195, 0.2);
    color: #00ffc3;
}

.incident-badge.few-incidents {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
}

.incident-badge.many-incidents {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

/* Service Name in Table */
.service-name {
    font-weight: 600;
    color: #fff;
}

.service-checks {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Status Badge */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge.status-online {
    background: rgba(0, 255, 195, 0.2);
    color: #00ffc3;
}

.status-badge.status-offline {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

/* Insight Cards Enhancement */
.insight-card.insight-success {
    border-color: #00ffc3;
    background: rgba(0, 255, 195, 0.05);
}

.insight-card.insight-info {
    border-color: #00e1ff;
    background: rgba(0, 225, 255, 0.05);
}

.insight-card.insight-warning {
    border-color: #ffa502;
    background: rgba(255, 165, 2, 0.05);
}

.insight-card.insight-critical {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
}

/* === Analytics Enhancements === */
/* === Stacked Analytics Bottom Layout === */
.analytics-bottom-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2.5rem;
  width: 100%;
}

/* Section titles */
.analytics-column h3 {
  font-size: 1.1rem;
  color: #00ffc3;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Shared panel base */
.analytics-column > div {
  background: rgba(0, 15, 25, 0.75);
  border: 1px solid rgba(0,255,195,0.12);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 0 14px rgba(0,255,195,0.05);
  transition: all 0.25s ease;
}
.analytics-column > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(0,255,195,0.12);
}

/* === INSIGHTS === */
.insight-card {
  background: linear-gradient(90deg, rgba(0,255,195,0.05), rgba(0,225,255,0.05));
  border-left: 4px solid #00ffc3;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.insight-card.insight-warning { border-left-color: #fc0; }
.insight-card.insight-critical { border-left-color: #f33; }
.insight-icon { font-size: 1.5rem; }
.insight-content h4 { margin: 0; font-size: 0.95rem; font-weight: 600; color: #fff; }
.insight-content p { margin: 0.25rem 0 0; font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* === INCIDENTS === */
.incident-card {
  background: rgba(255,255,255,0.03);
  border-left: 4px solid #f33;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}
.incident-card.incident-resolved { border-left-color: #0f3; }
.no-incidents {
  color: #00ffc3;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  background: rgba(0, 255, 195, 0.05);
  border-radius: 8px;
}

/* === SSL === */
.ssl-card {
  background: rgba(255,255,255,0.03);
  border-left: 4px solid #00e1ff;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.ssl-card.ssl-good { border-left-color: #0f3; }
.ssl-card.ssl-warning { border-left-color: #fc0; }
.ssl-card.ssl-critical { border-left-color: #f33; }

.ssl-service {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}
.ssl-expiry {
  font-size: 0.85rem;
  color: #00ffc3;
}
.ssl-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* --- FIX: Prevent .no-incidents from breaking table layout --- */
.incident-badge.no-incidents {
  display: inline-block !important;
  padding: 0.25rem 0.75rem !important;
  text-align: center !important;
  background: rgba(0, 255, 195, 0.2) !important;
  color: #00ffc3 !important;
  font-size: 0.85rem !important;
  border-radius: 12px !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.analytics-bottom-grid .no-incidents {
  display: block;
  padding: 2rem 0;
  background: rgba(0, 255, 195, 0.05);
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  color: #00ffc3;
}

/* ============================================ */
/* WEBSITE ANALYTICS STYLES */
/* ADD THIS TO YOUR style.css FILE */
/* ============================================ */

/* Real-time Bar */
.realtime-bar {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 255, 195, 0.1);
}

.realtime-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #00ffc3;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
}

.last-update {
    color: #888;
    font-size: 13px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(0, 255, 195, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 195, 0.15);
}

.metric-icon {
    font-size: 32px;
    opacity: 0.8;
}

.metric-content {
    flex: 1;
}

.metric-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.metric-value {
    color: #00ffc3;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
}

/* Chart Container */
.chart-container {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.chart-title {
    color: #00ffc3;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.chart-container canvas {
    max-height: 300px;
}

/* Analytics Grid (Two Column Layout) */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.analytics-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.analytics-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
    padding: 25px;
}

.analytics-card.full-width {
    width: 100%;
    margin-bottom: 30px;
}

.card-title {
    color: #00ffc3;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title .icon {
    font-size: 20px;
}

/* List Container */
.list-container {
    max-height: 400px;
    overflow-y: auto;
}

/* Custom scrollbar for list containers (analytics top pages, referrers, etc) */
.list-container::-webkit-scrollbar {
    width: 6px;
}

.list-container::-webkit-scrollbar-track {
    background: rgba(0, 255, 195, 0.05);
    border-radius: 3px;
}

.list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 195, 0.3);
    border-radius: 3px;
    transition: background 0.2s ease;
}

#topPagesList {
    padding-right: 20px;
}

.list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 225, 255, 0.5);
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 15px;
}

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

.list-item-title {
    flex: 1;
    color: #fff;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-item-url {
    flex: 1;
    color: #888;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 10px;
}

.list-item-value {
    color: #00ffc3;
    font-weight: 600;
    font-size: 18px;
    font-family: 'Space Mono', monospace;
    margin-left: 15px;
    white-space: nowrap;
}

/* Breakdown Container */
.breakdown-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breakdown-label {
    min-width: 80px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.breakdown-bar-container {
    flex: 1;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.breakdown-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffc3, #00e1ff);
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: #0a0f19;
    font-size: 12px;
    font-weight: 700;
}

/* Flow Container */
.flow-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flow-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(0, 255, 195, 0.05);
    border-left: 3px solid #00ffc3;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.flow-item:hover {
    background: rgba(0, 255, 195, 0.1);
    transform: translateX(5px);
}

.flow-path {
    font-family: 'Space Mono', monospace;
    color: #fff;
    font-size: 14px;
}

.flow-count {
    color: #00ffc3;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Space Mono', monospace;
}

/* Setup Instructions */
.setup-instructions {
    margin-top: 50px;
}

.setup-card {
    background: rgba(10, 15, 25, 0.8);
    border: 2px solid #00ffc3;
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.setup-card h3 {
    color: #00ffc3;
    margin-bottom: 20px;
    font-size: 24px;
}

.setup-card h4 {
    color: #00e1ff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
}

.setup-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.setup-card ol {
    color: #ccc;
    line-height: 1.8;
    margin: 15px 0;
    padding-left: 25px;
}

.setup-card ol li {
    margin-bottom: 8px;
}

.setup-card pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 15px 0;
}

.setup-card code {
    color: #00ffc3;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.tracker-url {
    color: #ffaa00;
    font-weight: 600;
}

.info-box {
    background: rgba(255, 170, 0, 0.1);
    border-left: 4px solid #ffaa00;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 25px;
    color: #ccc;
}

.info-box strong {
    color: #ffaa00;
}

.info-box code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    color: #ffaa00;
}

/* Loading and Empty States */
.loading-text {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .realtime-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ============================================
   🚀 LEGENDARY SERVICES STATUS SECTION
   ============================================ */

.services-legendary-header {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.05) 0%, rgba(0, 225, 255, 0.05) 100%);
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.services-legendary-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 195, 0.1), transparent);
    animation: legendary-scan 3s infinite;
}

@keyframes legendary-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.services-legend-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}

.legend-icon-pulse {
    font-size: 3rem;
    animation: legendary-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 255, 195, 0.6));
}

@keyframes legendary-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.legend-title-text h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #00ffc3 0%, #00e1ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.legend-title-text p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.services-legend-stats {
    display: flex;
    gap: 2rem;
    z-index: 1;
}

.legend-stat-item {
    text-align: center;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 12px;
}

.legend-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00ffc3;
    text-shadow: 0 0 20px rgba(0, 255, 195, 0.5);
}

.legend-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

/* Legendary Grid */
.services-legendary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

/* Legendary Service Card */
.service-legend-card {
    background: linear-gradient(135deg, rgba(0, 10, 20, 0.8) 0%, rgba(0, 20, 30, 0.9) 100%);
    border: 1px solid rgba(0, 255, 195, 0.2);
    border-radius: 16px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-legend-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 195, 0.1), transparent 30%);
    animation: legendary-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}

.service-legend-card:hover::before {
    opacity: 1;
}

.service-legend-card:hover {
    border-color: rgba(0, 255, 195, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 255, 195, 0.3);
}

@keyframes legendary-rotate {
    100% { transform: rotate(360deg); }
}

.service-legend-card.status-offline {
    border-color: rgba(255, 71, 87, 0.4);
}

.service-legend-card.status-offline:hover {
    border-color: rgba(255, 71, 87, 0.8);
    box-shadow: 0 20px 60px rgba(255, 71, 87, 0.3);
}

/* Card Header */
.legend-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.05) 0%, rgba(0, 225, 255, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 255, 195, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.legend-card-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-service-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 195, 0.4));
}

.legend-service-details h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.legend-service-url {
    color: rgba(0, 255, 195, 0.7);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-family: 'Space Mono', monospace;
}

.legend-status-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.legend-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: legendary-status-pulse 2s ease-in-out infinite;
}

.legend-status-badge.status-online {
    background: rgba(0, 255, 195, 0.15);
    border: 1px solid #00ffc3;
    color: #00ffc3;
}

.legend-status-badge.status-online::before {
    background: #00ffc3;
    box-shadow: 0 0 15px #00ffc3;
}

.legend-status-badge.status-offline {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid #ff4757;
    color: #ff4757;
}

.legend-status-badge.status-offline::before {
    background: #ff4757;
    box-shadow: 0 0 15px #ff4757;
}

@keyframes legendary-status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Status Dot */
.legend-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-status-badge.online .legend-status-dot {
    background: #00ffc3;
    box-shadow: 0 0 15px #00ffc3;
    animation: legendary-status-pulse 2s ease-in-out infinite;
}

.legend-status-badge.offline .legend-status-dot {
    background: #ff4757;
    box-shadow: 0 0 15px #ff4757;
    animation: legendary-status-pulse 2s ease-in-out infinite;
}

.legend-status-badge.checking .legend-status-dot {
    background: #ffa502;
    box-shadow: 0 0 15px #ffa502;
    animation: legendary-status-pulse 2s ease-in-out infinite;
}

/* Card Body */
.legend-card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.legend-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.legend-metric-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 195, 0.15);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.legend-metric-box:hover {
    border-color: rgba(0, 255, 195, 0.4);
    background: rgba(0, 255, 195, 0.05);
}

.legend-metric-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.legend-metric-icon {
    font-size: 1.2rem;
}

.legend-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffc3;
    text-shadow: 0 0 10px rgba(0, 255, 195, 0.3);
}

.legend-metric-value.metric-good,
.legend-metric-value.good {
    color: #00ffc3;
    text-shadow: 0 0 10px rgba(0, 255, 195, 0.5);
}

.legend-metric-value.metric-warning,
.legend-metric-value.warning {
    color: #ffa502;
    text-shadow: 0 0 10px rgba(255, 165, 2, 0.5);
}

.legend-metric-value.metric-bad,
.legend-metric-value.bad {
    color: #ff4757;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

/* Health Bar */
.legend-health-bar {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 195, 0.15);
    border-radius: 12px;
    padding: 1rem;
}

.legend-health-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.legend-health-container{
    margin-bottom: 15px;
}

.legend-health-percentage {
    font-weight: 700;
    color: #00ffc3;
}

.legend-health-track {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.legend-health-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffc3 0%, #00e1ff 100%);
    border-radius: 10px;
    position: relative;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.5);
}

.legend-health-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: legendary-shimmer 2s infinite;
}

@keyframes legendary-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Quick Actions */
.legend-quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.legend-action-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid rgba(0, 255, 195, 0.3);
    border-radius: 8px;
    color: #00ffc3;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.legend-action-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    border-color: #00ffc3;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 195, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-legendary-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .services-legend-stats {
        width: 100%;
        justify-content: space-between;
    }

    .services-legendary-grid {
        grid-template-columns: 1fr;
    }

    .legend-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .legend-title-text h2 {
        font-size: 1.5rem;
    }

    .legend-metrics-grid {
        grid-template-columns: 1fr;
    }

    .services-legend-stats {
        gap: 1rem;
    }

    .legend-stat-item {
        padding: 0.5rem 1rem;
    }

    .legend-stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .setup-card {
        padding: 25px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.breakdown-label .flag {
    font-size: 16px;
    margin-right: 6px;
}

/* --------------------------------------------- */
/* Responsive Layout for Analytics Dashboard     */
/* --------------------------------------------- */

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
  .analytics-grid {
    grid-template-columns: 1fr; /* collapse into single column */
    gap: 20px;
  }

  .analytics-column {
    flex-direction: column;
    gap: 20px;
  }

  .analytics-card {
    padding: 20px;
    border-radius: 10px;
    max-width: 745px;
  }

  .card-title {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

/* Large phones / small tablets (≤768px) */
@media (max-width: 768px) {
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .analytics-card {
    padding: 18px;
    border-radius: 8px;
    max-width: 90vw;
  }

  .card-title {
    font-size: 15px;
  }

  .breakdown-bar-container {
    height: 22px; /* smaller bars on small screens */
  }

  .breakdown-label {
    font-size: 13px;
    min-width: 70px;
  }

  .breakdown-bar {
    font-size: 11px;
    padding-right: 6px;
  }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  .analytics-grid {
    gap: 12px;
  }

  .analytics-card {
    padding: 15px;
  }

  .card-title {
    font-size: 14px;
    flex-wrap: wrap;
  }

  .breakdown-label {
    font-size: 12px;
    min-width: 60px;
  }

  .breakdown-bar-container {
    height: 18px;
  }

  .breakdown-bar {
    font-size: 10px;
  }
}

/* ============================================
   ALERT SETTINGS PANEL
   ============================================ */

.alert-settings-section {
    margin: 2rem 0;
}

.alert-settings-panel {
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.alert-settings-panel .settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.alert-settings-panel .settings-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00ffff;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.settings-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.settings-status.status-active {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.settings-status.status-inactive {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-active .status-dot {
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.status-inactive .status-dot {
    background: #666;
}

.settings-group {
    margin-bottom: 1.5rem;
}

.setting-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
}

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.setting-label {
    flex: 1;
    cursor: pointer;
}

.label-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.label-icon {
    font-size: 2rem;
    line-height: 1;
}

.label-text h4 {
    font-size: 1.125rem;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

.label-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 26px;
    transition: all 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.toggle-switch input:disabled + .toggle-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

.setting-warning {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 6px;
    display: flex;
    gap: 0.75rem;
}

.warning-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.warning-content strong {
    color: #ffa500;
    margin-bottom: 0.5rem;
}

.warning-content p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.warning-content code {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    color: #00ffff;
    font-size: 0.875rem;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00ffff;
    text-decoration: none;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    transition: color 0.2s;
}

.external-link:hover {
    color: #00dddd;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.setting-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
}

.settings-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    gap: 0.75rem;
}

.info-icon {
    font-size: 1.25rem;
    color: #00ffff;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.info-content strong {
    display: block;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.info-content ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.info-content li {
    margin: 0.25rem 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Button styling for test button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-secondary .btn-icon {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .alert-settings-panel {
        padding: 1.5rem;
    }
    
    .setting-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .toggle-switch {
        align-self: flex-start;
    }
}

/* ============================================
LEGENDARY BACKUP CENTER - CYBERPUNK EDITION
============================================ */

.backup-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
    perspective: 1000px;
}

#backupSection .header-actions .action-btn.primary {
    display: none;
}

#backupSection .header-actions .action-btn.secondary {
    margin-top: 10px;
}

.backup-stat-card {
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.95), rgba(0, 15, 25, 0.9));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(0, 255, 195, 0.1);
    position: relative;
    overflow: hidden;
}

.backup-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 195, 0.15),
        transparent
    );
    transition: left 0.6s ease;
}

.backup-stat-card:hover::before {
    left: 100%;
}

.backup-stat-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffc3, #00e1ff, #00ffc3);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.backup-stat-card:hover::after {
    opacity: 0.3;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.backup-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 255, 195, 0.8);
    box-shadow:
        0 16px 48px rgba(0, 255, 195, 0.3),
        0 0 40px rgba(0, 255, 195, 0.2),
        inset 0 1px 0 rgba(0, 255, 195, 0.3);
}

.backup-stat-card .stat-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 20px rgba(0, 255, 195, 0.8));
    animation: iconPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes iconPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 195, 0.8));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(0, 255, 195, 1));
        transform: scale(1.05);
    }
}

.backup-stat-card .stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.backup-stat-card .stat-label {
    font-size: 0.75rem;
    color: rgba(234, 255, 251, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 600;
}

.backup-stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ffc3, #00e1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Space Mono', monospace;
    animation: valueGlow 2s ease-in-out infinite;
}

@keyframes valueGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 195, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 195, 0.8));
    }
}

/* 🎯 SERVICE CARDS - HOLOGRAPHIC DESIGN */
.backup-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.backup-service-card {
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.98), rgba(0, 15, 25, 0.95));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(0, 255, 195, 0.1);
    z-index: 0;
}

.backup-service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 255, 195, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.backup-service-card:hover::before {
    opacity: 1;
    animation: holographicScan 2s linear infinite;
}

@keyframes holographicScan {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.backup-service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 195, 0.2),
        transparent
    );
    transition: left 0.8s ease;
}

.backup-service-card:hover::after {
    left: 100%;
}

.backup-service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 255, 195, 0.8);
    box-shadow:
        0 20px 60px rgba(0, 255, 195, 0.3),
        0 0 60px rgba(0, 255, 195, 0.2),
        inset 0 0 30px rgba(0, 255, 195, 0.05);
}

.backup-service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.backup-service-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 20px rgba(0, 255, 195, 0.8));
    animation: serviceIconFloat 4s ease-in-out infinite;
}

@keyframes serviceIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.backup-service-card:hover .backup-service-icon {
    filter: drop-shadow(0 0 30px rgba(0, 255, 195, 1));
}

.backup-service-title {
    flex: 1;
}

.backup-service-title h3 {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #00ffc3, #00e1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.backup-service-type {
    font-size: 0.7rem;
    color: rgba(234, 255, 251, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.backup-service-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.backup-stat-item {
    background: rgba(0, 225, 255, 0.08);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid rgba(0, 225, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.backup-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00e1ff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.backup-stat-item:hover::before {
    opacity: 1;
    animation: scanline 1.5s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.backup-stat-item:hover {
    border-color: rgba(0, 225, 255, 0.5);
    background: rgba(0, 225, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.2);
}

.backup-stat-label {
    font-size: 0.7rem;
    color: rgba(234, 255, 251, 0.6);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.backup-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00e1ff, #00ffc3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Space Mono', monospace;
}

/* 🚀 ACTION BUTTONS - EPIC EDITION */
.backup-service-actions {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.backup-action-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(0, 255, 195, 0.4);
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.15), rgba(0, 225, 255, 0.1));
    color: #00ffc3;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.backup-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 195, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.backup-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.backup-action-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.25), rgba(0, 225, 255, 0.2));
    border-color: rgba(0, 255, 195, 0.8);
    box-shadow: 0 0 30px rgba(0, 255, 195, 0.4);
    transform: translateY(-2px);
}

.backup-action-btn:active {
    transform: translateY(0) scale(0.98);
}

.backup-action-btn span {
    position: relative;
    z-index: 1;
}

/* Backup Detail Modal */
.backup-detail-modal {
    max-width: 1200px;
}

.backup-detail-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.6), rgba(0, 15, 25, 0.4));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(0, 255, 195, 0.2),
        inset 0 0 30px rgba(0, 255, 195, 0.05);
}

.backup-detail-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 195, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;

}

@keyframes infoGlow {
    0%, 100% { opacity: 0.3; transform: rotate(0deg); }
    50% { opacity: 0.6; transform: rotate(180deg); }
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.info-label {
    font-size: 0.75rem;
    color: rgba(234, 255, 251, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #00ffc3;
    text-shadow: 0 0 10px rgba(0, 255, 195, 0.6);
    font-family: 'Space Mono', monospace;
}

.backup-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for backup list */
.backup-list::-webkit-scrollbar {
    width: 8px;
}

.backup-list::-webkit-scrollbar-track {
    background: rgba(0, 15, 25, 0.5);
    border-radius: 4px;
}

.backup-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffc3, #00e1ff);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.5);
}

.backup-item {
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.8), rgba(0, 15, 25, 0.6));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.backup-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 195, 0.15), transparent);
    transition: left 0.6s ease;
}

.backup-item:hover {
    border-color: rgba(0, 255, 195, 0.6);
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.95), rgba(0, 15, 25, 0.8));
    box-shadow:
        0 0 30px rgba(0, 255, 195, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.backup-item:hover::before {
    left: 100%;
}

.backup-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.backup-item-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 0 8px rgba(0, 255, 195, 0.6));
    animation: itemIconPulse 3s ease-in-out infinite;
}

@keyframes itemIconPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 255, 195, 0.6)); }
    50% { filter: drop-shadow(0 0 15px rgba(0, 255, 195, 1)); }
}

.backup-item-info {
    flex: 1;
}

.backup-item-name {
    font-size: 1rem;
    font-weight: 700;
    color: #eafffb;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 5px rgba(234, 255, 251, 0.3);
    font-family: 'Space Mono', monospace;
}

.backup-item-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: rgba(234, 255, 251, 0.7);
    font-family: 'Space Mono', monospace;
}

.backup-item-meta span {
    position: relative;
    padding-left: 1.2rem;
}

.backup-item-meta span::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00ffc3;
}

.backup-item-actions {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.backup-item-btn {
    padding: 0.65rem 1.25rem;
    border: 2px solid rgba(0, 255, 195, 0.4);
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.15), rgba(0, 225, 255, 0.1));
    color: #00ffc3;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.backup-item-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 195, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.backup-item-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.25), rgba(0, 225, 255, 0.2));
    border-color: rgba(0, 255, 195, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.5);
    transform: translateY(-2px);
}

.backup-item-btn:hover::before {
    width: 200px;
    height: 200px;
}

.backup-item-btn.danger {
    border-color: rgba(255, 77, 109, 0.4);
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.15), rgba(201, 24, 74, 0.1));
    color: #ff4d6d;
}

.backup-item-btn.danger::before {
    background: rgba(255, 77, 109, 0.3);
}

.backup-item-btn.danger:hover {
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.25), rgba(201, 24, 74, 0.2));
    border-color: rgba(255, 77, 109, 0.8);
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.5);
}

/* Progress Modal - GLOWING EFFECTS */
.progress-container {
    padding: 2.5rem;
    text-align: center;
}

.progress-stage {
    font-size: 1.2rem;
    color: #00ffc3;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 255, 195, 0.8);
    animation: progressStagePulse 2s ease-in-out infinite;
}

@keyframes progressStagePulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 195, 0.8);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 255, 195, 1), 0 0 50px rgba(0, 225, 255, 0.6);
        transform: scale(1.02);
    }
}

.progress-bar-container {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 15, 25, 0.9), rgba(0, 31, 36, 0.8));
    border: 3px solid rgba(0, 255, 195, 0.4);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow:
        0 0 30px rgba(0, 255, 195, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.progress-bar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 195, 0.1) 50%,
        transparent 100%
    );
    animation: containerScan 3s linear infinite;
}

@keyframes containerScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffc3 0%, #00e1ff 50%, #06ffa5 100%);
    border-radius: 20px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 0 30px rgba(0, 255, 195, 0.8),
        0 0 60px rgba(0, 255, 195, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Epic shimmer effect */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    animation: progressShimmer 2.5s infinite;
    transform: skewX(-25deg);
}

/* Pulsing glow effect */
.progress-bar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    animation: progressGlow 3s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.5; transform: rotate(0deg); }
    50% { opacity: 1; transform: rotate(180deg); }
}

.progress-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: #00ffc3;
    font-family: 'Space Mono', monospace;
    text-shadow:
        0 0 10px rgba(0, 255, 195, 0.8),
        0 0 20px rgba(0, 255, 195, 0.6),
        0 0 30px rgba(0, 225, 255, 0.4);
    animation: percentageFlicker 1.5s ease-in-out infinite;
}

@keyframes percentageFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.progress-log {
    margin-top: 2rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(0, 15, 25, 0.9), rgba(0, 31, 36, 0.7));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    text-align: left;
    box-shadow:
        0 0 20px rgba(0, 255, 195, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.progress-log::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffc3, transparent);
    animation: logTopScan 2s linear infinite;
}

@keyframes logTopScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Custom scrollbar for progress log */
.progress-log::-webkit-scrollbar {
    width: 8px;
}

.progress-log::-webkit-scrollbar-track {
    background: rgba(0, 15, 25, 0.5);
    border-radius: 4px;
}

.progress-log::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffc3, #00e1ff);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.5);
}

.progress-log-entry {
    font-size: 0.85rem;
    color: rgba(234, 255, 251, 0.85);
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0, 255, 195, 0.15);
    font-family: 'Space Mono', monospace;
    position: relative;
    padding-left: 2rem;
    animation: logEntryAppear 0.3s ease;
}

@keyframes logEntryAppear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.progress-log-entry::before {
    content: '▸';
    position: absolute;
    left: 0.75rem;
    color: #00ffc3;
    animation: logEntryPulse 2s ease-in-out infinite;
}

@keyframes logEntryPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.progress-log-entry:last-child {
    border-bottom: none;
}

.progress-log-entry.success {
    color: #06ffa5;
    text-shadow: 0 0 8px rgba(6, 255, 165, 0.4);
}

.progress-log-entry.success::before {
    content: '✓';
    color: #06ffa5;
}

.progress-log-entry.error {
    color: #ff4d6d;
    text-shadow: 0 0 8px rgba(255, 77, 109, 0.4);
}

.progress-log-entry.error::before {
    content: '✗';
    color: #ff4d6d;
}

/* Warning Box - EPIC ALERT STYLING */
.warning-box {
    background: linear-gradient(135deg,
        rgba(255, 186, 8, 0.15),
        rgba(255, 77, 109, 0.15),
        rgba(201, 24, 74, 0.1)
    );
    border: 3px solid rgba(255, 186, 8, 0.6);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(255, 186, 8, 0.3),
        inset 0 0 30px rgba(255, 186, 8, 0.1);
}

.warning-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 186, 8, 0.2), transparent);
    animation: warningPulse 3s linear infinite;
}

@keyframes warningPulse {
    0% { left: -100%; }
    100% { left: 100%; }
}

.warning-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 15px rgba(255, 186, 8, 0.8));
    animation: warningIconPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes warningIconPulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 186, 8, 0.8));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 186, 8, 1));
        transform: scale(1.05);
    }
}

.warning-content {
    position: relative;
    z-index: 1;
}

.warning-content h3 {
    color: #ffba08;
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 15px rgba(255, 186, 8, 0.6);
}

.warning-content p {
    color: rgba(234, 255, 251, 0.95);
    margin: 0.5rem 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.restore-info {
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.8), rgba(0, 15, 25, 0.6));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.2);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 255, 195, 0.2);
    font-family: 'Space Mono', monospace;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    color: rgba(234, 255, 251, 0.7);
    font-weight: 600;
}

.info-row span {
    color: #00ffc3;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 255, 195, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4d6d, #c9184a);
    color: white;
    border: 2px solid rgba(255, 77, 109, 0.6);
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-danger:hover {
    box-shadow:
        0 0 30px rgba(255, 77, 109, 0.6),
        0 0 60px rgba(255, 77, 109, 0.4);
    transform: translateY(-3px);
    border-color: rgba(255, 77, 109, 1);
}

.btn-danger:hover::before {
    width: 300px;
    height: 300px;
}



/* ============================================
   BACKUP SCHEDULING UI - LEGENDARY STYLE
   ============================================ */

/* Schedule Form Styling */
.schedule-form-group {
    margin-bottom: 1.5rem;
}

.schedule-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00ffc3;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.8), rgba(0, 15, 25, 0.6));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 8px;
    color: #eafffb;
    font-size: 0.95rem;
    font-family: 'Space Mono', monospace;
    transition: all 0.3s ease;
}

.schedule-form-input:focus {
    outline: none;
    border-color: rgba(0, 255, 195, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.4);
}

.schedule-form-input option {
    background: #001f24;
    color: #eafffb;
}

.schedule-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.schedule-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #00ffc3;
}

.schedule-checkbox-label span {
    color: #eafffb;
    font-size: 0.95rem;
}

/* Schedule Stats Grid */
.schedule-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.schedule-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.8), rgba(0, 15, 25, 0.6));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.schedule-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 195, 0.1), transparent);
    transition: left 0.5s ease;
}

.schedule-stat-card:hover {
    border-color: rgba(0, 255, 195, 0.6);
    box-shadow: 0 0 25px rgba(0, 255, 195, 0.3);
    transform: translateY(-2px);
}

.schedule-stat-card:hover::before {
    left: 100%;
}

.schedule-stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 195, 0.6));
}

.schedule-stat-info {
    flex: 1;
}

.schedule-stat-label {
    font-size: 0.85rem;
    color: rgba(234, 255, 251, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #00ffc3;
    font-family: 'Space Mono', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 195, 0.6);
}

/* Schedules List Container */
.schedules-list-container {
    margin-bottom: 2rem;
}

.schedules-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 195, 0.2);
}

.schedules-list-header h4 {
    font-size: 1.2rem;
    color: #00ffc3;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.schedules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.no-schedules {
    text-align: center;
    padding: 3rem;
    color: rgba(234, 255, 251, 0.6);
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.4), rgba(0, 15, 25, 0.3));
    border: 2px dashed rgba(0, 255, 195, 0.3);
    border-radius: 12px;
}

/* Individual Schedule Card */
.schedule-card {
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.9), rgba(0, 15, 25, 0.7));
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 195, 0.1), transparent);
    transition: left 0.6s ease;
}

.schedule-card:hover {
    border-color: rgba(0, 255, 195, 0.6);
    box-shadow: 0 0 30px rgba(0, 255, 195, 0.3);
    transform: translateY(-3px);
}

.schedule-card:hover::before {
    left: 100%;
}

.schedule-card.schedule-disabled {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.2);
}

.schedule-card.schedule-disabled:hover {
    opacity: 0.8;
}

.schedule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.schedule-card-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.schedule-service-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(0, 255, 195, 0.6));
}

.schedule-card-title h4 {
    font-size: 1.1rem;
    color: #eafffb;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
}

.schedule-details {
    font-size: 0.9rem;
    color: rgba(234, 255, 251, 0.7);
    margin: 0;
    font-family: 'Space Mono', monospace;
}

.schedule-status-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-status-badge.schedule-enabled {
    background: linear-gradient(135deg, rgba(6, 255, 165, 0.2), rgba(0, 255, 195, 0.2));
    border: 2px solid rgba(6, 255, 165, 0.6);
    color: #06ffa5;
    box-shadow: 0 0 10px rgba(6, 255, 165, 0.4);
}

.schedule-status-badge.schedule-disabled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(200, 200, 200, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.schedule-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 15, 25, 0.5);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.schedule-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-info-label {
    font-size: 0.85rem;
    color: rgba(234, 255, 251, 0.6);
    font-weight: 600;
}

.schedule-info-value {
    font-size: 0.9rem;
    color: #00ffc3;
    font-family: 'Space Mono', monospace;
    font-weight: 600;
}

.schedule-card-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.schedule-btn {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 255, 195, 0.4);
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.1), rgba(0, 225, 255, 0.05));
    color: #00ffc3;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.schedule-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 195, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.schedule-btn:hover {
    border-color: rgba(0, 255, 195, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.5);
    transform: translateY(-2px);
}

.schedule-btn:hover::before {
    width: 100px;
    height: 100px;
}

.schedule-btn-delete {
    border-color: rgba(255, 77, 109, 0.4);
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.1), rgba(201, 24, 74, 0.05));
    color: #ff4d6d;
}

.schedule-btn-delete::before {
    background: rgba(255, 77, 109, 0.3);
}

.schedule-btn-delete:hover {
    border-color: rgba(255, 77, 109, 0.8);
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.5);
}

/* Schedule Logs Section */
.schedule-logs-container {
    margin-top: 2rem;
}

.schedule-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 195, 0.2);
}

.schedule-logs-header h4 {
    font-size: 1.2rem;
    color: #00ffc3;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.schedule-logs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for logs */
.schedule-logs-list::-webkit-scrollbar {
    width: 8px;
}

.schedule-logs-list::-webkit-scrollbar-track {
    background: rgba(0, 15, 25, 0.5);
    border-radius: 4px;
}

.schedule-logs-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffc3, #00e1ff);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.5);
}

.no-logs {
    text-align: center;
    padding: 2rem;
    color: rgba(234, 255, 251, 0.5);
    font-size: 0.95rem;
    background: rgba(0, 15, 25, 0.3);
    border: 1px dashed rgba(0, 255, 195, 0.2);
    border-radius: 8px;
}

.schedule-log-entry {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.7), rgba(0, 15, 25, 0.5));
    border: 2px solid rgba(0, 255, 195, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: logEntrySlideIn 0.4s ease;
}

@keyframes logEntrySlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.schedule-log-entry:hover {
    border-color: rgba(0, 255, 195, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 195, 0.2);
}

.schedule-log-entry.log-success {
    border-left: 4px solid #06ffa5;
}

.schedule-log-entry.log-failed {
    border-left: 4px solid #ff4d6d;
}

.schedule-log-entry.log-running {
    border-left: 4px solid #ffba08;
    animation: logEntryPulse 2s ease-in-out infinite;
}

@keyframes logEntryPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 186, 8, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 186, 8, 0.6);
    }
}

.schedule-log-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(0, 255, 195, 0.4));
}

.schedule-log-content {
    flex: 1;
}

.schedule-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.schedule-log-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #eafffb;
}

.schedule-log-time {
    font-size: 0.8rem;
    color: rgba(234, 255, 251, 0.6);
    font-family: 'Space Mono', monospace;
}

.schedule-log-error {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.3);
    border-radius: 6px;
    color: #ff4d6d;
    font-size: 0.85rem;
    font-family: 'Space Mono', monospace;
}

.schedule-log-size {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(234, 255, 251, 0.7);
    font-family: 'Space Mono', monospace;
}

/* ============================================
   LEGENDARY CYBERPUNK MODAL SYSTEM
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 8, 20, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(0, 31, 36, 0.98), rgba(0, 15, 25, 0.98));
    border: 2px solid rgba(0, 255, 195, 0.4);
    border-radius: 16px;
    box-shadow:
        0 0 60px rgba(0, 255, 195, 0.3),
        0 0 120px rgba(0, 225, 255, 0.2),
        inset 0 0 60px rgba(0, 255, 195, 0.05);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.backup-detail-modal {
    max-width: 900px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.15), rgba(0, 225, 255, 0.1));
    border-bottom: 2px solid rgba(0, 255, 195, 0.3);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 195, 0.1),
        transparent
    );
    animation: modalHeaderShine 3s infinite;
}

@keyframes modalHeaderShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ffc3, #00e1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 195, 0.5);
    position: relative;
    z-index: 1;
}

.modal-close {
    background: rgba(255, 77, 109, 0.1);
    border: 2px solid rgba(255, 77, 109, 0.4);
    color: #ff4d6d;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(255, 77, 109, 0.2);
    border-color: rgba(255, 77, 109, 0.8);
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.6);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 2rem;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
}

/* Custom scrollbar for modals */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 31, 36, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffc3, #00e1ff);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00e1ff, #00ffc3);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 255, 195, 0.2);
}

.btn-secondary, .btn-primary {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary {
    background: rgba(100, 100, 120, 0.2);
    border: 2px solid rgba(150, 150, 170, 0.4);
    color: rgba(234, 255, 251, 0.8);
}

.btn-secondary:hover {
    background: rgba(100, 100, 120, 0.3);
    border-color: rgba(150, 150, 170, 0.6);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 255, 195, 0.2), rgba(0, 225, 255, 0.2));
    border: 2px solid rgba(0, 255, 195, 0.5);
    color: #00ffc3;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 195, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    border-color: rgba(0, 255, 195, 0.8);
    box-shadow: 0 0 30px rgba(0, 255, 195, 0.5);
    transform: translateY(-2px);
}

.btn-primary span,
.btn-secondary span {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #00ffc3;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 31, 36, 0.6);
    border: 2px solid rgba(0, 255, 195, 0.3);
    border-radius: 8px;
    color: #eafffb;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(0, 255, 195, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.3);
    background: rgba(0, 31, 36, 0.8);
}

.service-icon-img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

/* Responsive adjustments for backup center */
@media (max-width: 768px) {
    .backup-overview-grid {
        grid-template-columns: 1fr;
    }

    .backup-services-grid {
        grid-template-columns: 1fr;
    }

    .backup-detail-info {
        grid-template-columns: 1fr;
    }

    .backup-service-stats {
        grid-template-columns: 1fr;
    }
}

#scheduleBackupModal{
    z-index: 999999999999;
}