/* CSS Variables for Light and Dark Themes */
:root {
    /* Light theme colors */
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-accent: #007aff;
    --border-color: #d2d2d7;
    --border-light: #e5e5e7;
    --shadow-color: rgba(0, 0, 0, 0.07);
    --shadow-hover: rgba(0, 0, 0, 0.1);
    --status-available: #34c759;
    --status-unavailable: #ff3b30;
    --status-maintenance: #ff9500;
    --status-unknown: #8e8e93;
    --btn-danger: #ff3b30;
    --btn-danger-hover: #d70015;
}

[data-theme="dark"] {
    /* Dark theme colors */
    --bg-primary: #1c1c1e;
    --bg-secondary: #2c2c2e;
    --bg-tertiary: #3a3a3c;
    --text-primary: #ffffff;
    --text-secondary: #98989d;
    --text-accent: #0a84ff;
    --border-color: #38383a;
    --border-light: #48484a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --status-available: #30d158;
    --status-unavailable: #ff453a;
    --status-maintenance: #ff9f0a;
    --status-unknown: #8e8e93;
    --btn-danger: #ff453a;
    --btn-danger-hover: #ff6961;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Ensure admin pages have proper layout */
body.admin-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0 10%;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 60px 0 40px;
    background: var(--bg-secondary);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

header h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    width: 60px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    align-items: center;
    padding: 2px;
    margin-right: 10px;
}

/* Fallback positioning for JS-created theme toggle */
body > .theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    margin-right: 0;
}

.theme-toggle:hover {
    box-shadow: 0 4px 12px var(--shadow-hover);
    transform: translateY(-1px);
}

.theme-toggle-slider {
    width: 24px;
    height: 24px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(28px);
}

.theme-toggle-slider::before {
    content: '☀️';
}

[data-theme="dark"] .theme-toggle-slider::before {
    content: '🌙';
}

/* Server Header */
.server-header {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0;
    margin: 0 -20px 30px -20px;
    border-radius: 0;
    box-shadow: 0 1px 3px var(--shadow-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    padding: 15px 0 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow-color);
}

.back-link:hover {
    color: var(--text-accent);
    background: var(--bg-tertiary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-color);
    opacity: 0.8;
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-2px);
}

.header-main {
    padding: 25px 0 30px 0;
}

.server-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.server-title-section {
    flex: 1;
}

.server-name {
    margin: 0 0 8px 0;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.server-description {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

.server-status-section {
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
}

.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.server-status-badge.available {
    background: #d1f2eb;
    border-color: #28a745;
    color: #155724;
}

.server-status-badge.unavailable {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.server-status-badge.maintenance {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

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

.server-status-badge.available .status-dot {
    background: #28a745;
}

.server-status-badge.unavailable .status-dot {
    background: #dc3545;
}

.server-status-badge.maintenance .status-dot {
    background: #ffc107;
}

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

.server-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.meta-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.meta-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.meta-value svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.meta-value span {
    word-break: break-all;
}

@media (max-width: 768px) {
    .header-top {
        padding: 15px 0 10px 0;
    }
    
    .server-info {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .server-name {
        font-size: 2.2rem;
    }
    
    .server-description {
        font-size: 1rem;
    }
    
    .server-status-section {
        margin-top: 0;
        align-self: flex-start;
    }
    
    .server-meta {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .header-main {
        padding: 20px 0 30px 0;
    }
}

/* Main content */
.main-container {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

main {
    padding: 0 0 60px;
}

.error-message {
    background: #ff3b30;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.service-link:hover {
    transform: translateY(-2px);
}

.service-link:hover .service-item {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    border: 1px solid var(--border-light);
    height: 180px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-status {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    min-height: 40px;
    flex-wrap: wrap;
    gap: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    order: 0;
    margin-right: 8px;
    margin-top: 2px;
}

.status-indicator.available {
    background-color: var(--status-available);
}

.status-indicator.unavailable {
    background-color: var(--status-unavailable);
}

.status-indicator.maintenance {
    background-color: var(--status-maintenance);
}

.service-name {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1 1 100%;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    height: 1.43em;
    margin-bottom: 4px;
    order: 1;
    padding-right: 120px;
}

.service-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
}

.status-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: absolute;
    top: 44px;
    right: 16px;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 1.26em;
    flex-shrink: 0;
}

/* Uptime info */
.uptime-info {
    margin-top: 16px;
}

.uptime-percentage {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.response-time-info {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
}

.response-time {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Navigation Bar Styles */
.navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

/* Dynamic navbar status colors */
.navbar-operational {
    background: rgba(52, 199, 89, 0.1);
    border-bottom: 1px solid rgba(52, 199, 89, 0.3);
}

.navbar-warning {
    background: rgba(255, 149, 0, 0.1);
    border-bottom: 1px solid rgba(255, 149, 0, 0.3);
}

.navbar-critical {
    background: rgba(255, 59, 48, 0.1);
    border-bottom: 1px solid rgba(255, 59, 48, 0.3);
}

.navbar-incident {
    background: rgba(255, 149, 0, 0.1);
    border-bottom: 1px solid rgba(255, 149, 0, 0.3);
}

/* Dark mode navbar */
[data-theme="dark"] .navbar {
    background: rgba(44, 44, 46, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .navbar-operational {
    background: rgba(48, 209, 88, 0.15);
    border-bottom: 1px solid rgba(48, 209, 88, 0.4);
}

[data-theme="dark"] .navbar-warning {
    background: rgba(255, 159, 10, 0.15);
    border-bottom: 1px solid rgba(255, 159, 10, 0.4);
}

[data-theme="dark"] .navbar-critical {
    background: rgba(255, 69, 58, 0.15);
    border-bottom: 1px solid rgba(255, 69, 58, 0.4);
}

[data-theme="dark"] .navbar-incident {
    background: rgba(255, 159, 10, 0.15);
    border-bottom: 1px solid rgba(255, 159, 10, 0.4);
}

/* Adjust container spacing for navbar */
.navbar + .container {
    margin-top: 20px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}





/* Status Banner Styles */
.status-banner {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.status-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-banner .status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.status-content h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.status-content p {
    margin: 4px 0 0 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Status Banner Color Variations */
.status-operational {
    background: linear-gradient(135deg, 
        rgba(52, 199, 89, 0.08) 0%, 
        rgba(52, 199, 89, 0.04) 50%,
        rgba(52, 199, 89, 0.02) 100%);
}

.status-operational .status-indicator {
    background-color: var(--status-available);
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2);
}

.status-operational .status-content h2 {
    color: var(--status-available);
}

.status-warning {
    background: linear-gradient(135deg, 
        rgba(255, 149, 0, 0.08) 0%, 
        rgba(255, 149, 0, 0.04) 50%,
        rgba(255, 149, 0, 0.02) 100%);
}

.status-warning .status-indicator {
    background-color: var(--status-maintenance);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.2);
}

.status-warning .status-content h2 {
    color: var(--status-maintenance);
}

.status-critical {
    background: linear-gradient(135deg, 
        rgba(255, 59, 48, 0.08) 0%, 
        rgba(255, 59, 48, 0.04) 50%,
        rgba(255, 59, 48, 0.02) 100%);
}

.status-critical .status-indicator {
    background-color: var(--status-unavailable);
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2);
}

.status-critical .status-content h2 {
    color: var(--status-unavailable);
}

.status-incident {
    background: linear-gradient(135deg, 
        rgba(255, 149, 0, 0.08) 0%, 
        rgba(255, 149, 0, 0.04) 50%,
        rgba(255, 149, 0, 0.02) 100%);
}

.status-incident .status-indicator {
    background-color: var(--status-maintenance);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.2);
}

.status-incident .status-content h2 {
    color: var(--status-maintenance);
}

/* Dark mode status banner */
[data-theme="dark"] .status-operational {
    background: linear-gradient(135deg, 
        rgba(48, 209, 88, 0.12) 0%, 
        rgba(48, 209, 88, 0.06) 50%,
        rgba(48, 209, 88, 0.03) 100%);
}

[data-theme="dark"] .status-warning {
    background: linear-gradient(135deg, 
        rgba(255, 159, 10, 0.12) 0%, 
        rgba(255, 159, 10, 0.06) 50%,
        rgba(255, 159, 10, 0.03) 100%);
}

[data-theme="dark"] .status-critical {
    background: linear-gradient(135deg, 
        rgba(255, 69, 58, 0.12) 0%, 
        rgba(255, 69, 58, 0.06) 50%,
        rgba(255, 69, 58, 0.03) 100%);
}

[data-theme="dark"] .status-incident {
    background: linear-gradient(135deg, 
        rgba(255, 159, 10, 0.12) 0%, 
        rgba(255, 159, 10, 0.06) 50%,
        rgba(255, 159, 10, 0.03) 100%);
}

/* Show Details Button Styling */
.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-details:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-details:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-details .btn-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-details:hover .btn-icon {
    transform: scale(1.1);
}

/* Ripple effect */
.btn-details::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-details:active::before {
    width: 300px;
    height: 300px;
}

/* Dark mode button styling */
[data-theme="dark"] .btn-details {
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-details:hover {
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.15) 0%, 
        rgba(96, 165, 250, 0.08) 100%);
    border-color: rgba(96, 165, 250, 0.4);
    color: #60a5fa;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.25);
}

[data-theme="dark"] .btn-details::before {
    background: rgba(96, 165, 250, 0.2);
}

/* Card actions container */
.card-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

/* Responsive button styling */
@media (max-width: 768px) {
    .btn-details {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .card-actions {
        justify-content: center;
    }
}



/* Add subtle animation to navbar */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced navbar container */
.navbar-container {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.navbar-brand h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.navbar-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.navbar-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-accent);
    color: var(--text-accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px var(--shadow-hover);
}

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

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

.navbar-btn-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.navbar-btn-danger:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #c82333;
    border-color: #dc3545;
}

.navbar-btn-active {
    background: var(--text-accent);
    color: white;
    border-color: var(--text-accent);
    cursor: default;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.navbar-btn-active:hover {
    background: var(--text-accent);
    color: white;
    border-color: var(--text-accent);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* Navbar Status Colors */
.navbar-available {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 3px solid #22c55e;
    box-shadow: 0 2px 20px rgba(34, 197, 94, 0.1);
}

.navbar-unavailable {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 3px solid #ef4444;
    box-shadow: 0 2px 20px rgba(239, 68, 68, 0.1);
}

.navbar-maintenance {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 3px solid #f59e0b;
    box-shadow: 0 2px 20px rgba(245, 158, 11, 0.1);
}

/* Dark Mode Navbar Status Colors */
[data-theme="dark"] .navbar-available {
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 3px solid #30d158;
    box-shadow: 0 2px 20px rgba(48, 209, 88, 0.2);
}

[data-theme="dark"] .navbar-unavailable {
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 3px solid #ff453a;
    box-shadow: 0 2px 20px rgba(255, 69, 58, 0.2);
}

[data-theme="dark"] .navbar-maintenance {
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 3px solid #ff9f0a;
    box-shadow: 0 2px 20px rgba(255, 159, 10, 0.2);
}

/* Navbar Meta Items */
.navbar-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
}

.navbar-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.navbar-meta-item svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* Navbar Title Row */
.navbar-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.navbar-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-status-badge.available {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.navbar-status-badge.unavailable {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.navbar-status-badge.maintenance {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.navbar-status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.navbar-status-badge.available .status-dot {
    background: #22c55e;
}

.navbar-status-badge.unavailable .status-dot {
    background: #ef4444;
}

.navbar-status-badge.maintenance .status-dot {
    background: #f59e0b;
}

/* Dark Mode Navbar Status Badge Colors */
[data-theme="dark"] .navbar-status-badge.available {
    background: rgba(48, 209, 88, 0.2);
    color: #30d158;
    border: 1px solid rgba(48, 209, 88, 0.4);
}

[data-theme="dark"] .navbar-status-badge.unavailable {
    background: rgba(255, 69, 58, 0.2);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.4);
}

[data-theme="dark"] .navbar-status-badge.maintenance {
    background: rgba(255, 159, 10, 0.2);
    color: #ff9f0a;
    border: 1px solid rgba(255, 159, 10, 0.4);
}

[data-theme="dark"] .navbar-status-badge.available .status-dot {
    background: #30d158;
}

[data-theme="dark"] .navbar-status-badge.unavailable .status-dot {
    background: #ff453a;
}

[data-theme="dark"] .navbar-status-badge.maintenance .status-dot {
    background: #ff9f0a;
}

/* Dark Mode Navbar Blur */
[data-theme="dark"] .navbar {
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .navbar-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .navbar-meta-item {
        font-size: 0.8rem;
    }
    
    .navbar-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .navbar-status-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* Server Detail Page Styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.site-info {
    flex: 1;
    min-width: 200px;
}

.site-info h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 32px;
    font-weight: 700;
}

.back-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-top: 5px;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

.server-url {
    color: #6c757d;
    font-size: 14px;
    margin: 5px 0;
}

.server-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.stats-section {
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.stats-section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}

.chart-section {
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

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

.chart-section h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
}

.chart-container {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    height: 400px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.uptime-chart-detailed {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.uptime-chart-detailed .uptime-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    cursor: pointer;
}

.uptime-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
    font-size: 14px;
}

.uptime-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.recent-checks-section {
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.recent-checks-section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.recent-checks-table {
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

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

.recent-checks-table th,
.recent-checks-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.recent-checks-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.recent-checks-table tr:last-child td {
    border-bottom: none;
}

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

.status-badge.online {
    background: #d4edda;
    color: #155724;
}

.status-badge.offline {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.maintenance {
    background: #fff3cd;
    color: #856404;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
}

.pagination-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.pagination-controls label {
    font-weight: 500;
    color: var(--text-primary);
}

.pagination-controls select {
    padding: 6px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-controls select:hover {
    border-color: var(--text-accent);
}

.pagination-controls select:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.pagination-text {
    margin-top: 5px;
}

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

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
}

.pagination-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-accent);
}

.pagination-btn.active {
    background: var(--text-accent);
    color: var(--bg-secondary);
    border-color: var(--text-accent);
}

.pagination-btn.active:hover {
    background: var(--text-accent);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination-info {
        align-items: center;
    }
    
    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.uptime-chart {
    display: flex;
    gap: 1px;
    height: 20px;
    align-items: end;
    width: 100%;
}

.uptime-day {
    flex: 1;
    height: 100%;
    border-radius: 2px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.uptime-day.available {
    background-color: var(--status-available);
}

.uptime-day.unavailable {
    background-color: var(--status-unavailable);
}

.uptime-day.maintenance {
    background-color: var(--status-maintenance);
}

.uptime-day.no-data {
    background-color: var(--status-unknown);
}

.uptime-day:hover {
    transform: scale(1.2);
}

/* No services message */
.no-services {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: background-color 0.3s ease;
}

.no-services p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-content a {
    color: var(--text-accent);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.software-info {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.software-info strong {
    color: var(--text-accent);
    font-weight: 600;
}

.admin-link {
    display: inline-block;
    background: var(--text-accent);
    color: var(--bg-secondary) !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.admin-link:hover {
    background: var(--text-accent);
    opacity: 0.8;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }
    
    .services-grid {
        max-width: 100%;
        margin: 0;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .header-container {
        max-width: 100%;
        padding: 0 12px;
    }
    
    header {
        padding: 30px 0 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .service-item {
        padding: 12px;
        min-height: auto;
    }
    
    .service-name {
        font-size: 1rem;
        padding-right: 80px;
        line-height: 1.2;
    }
    
    .service-type {
        font-size: 0.7rem;
        padding: 2px 6px;
        top: 8px;
        right: 8px;
    }
    
    .status-text {
        font-size: 0.7rem;
        top: 24px;
        right: 8px;
    }
    
    .uptime-bar {
        height: 20px;
        margin: 8px 0;
    }
    
    .uptime-text {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .location {
        font-size: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    
    /* Center server header content on mobile */
    .server-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .server-name {
        text-align: center;
    }
    
    .server-description {
        text-align: center;
    }
    
    .server-status-section {
        justify-content: center;
        margin-top: 16px;
    }
    
    .server-status-badge {
        justify-content: center;
    }
    
    .status-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 6px;
        margin: 0;
    }
    
    .services-grid {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 6px;
    }
    
    .header-container {
        max-width: 100%;
        padding: 0 6px;
        margin: 0;
    }
    
    header {
        padding: 20px 0 15px;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .service-item {
        padding: 10px;
        min-height: auto;
    }
    
    .service-name {
        font-size: 0.9rem;
        padding-right: 70px;
        line-height: 1.1;
    }
    
    .service-type {
        font-size: 0.6rem;
        padding: 1px 4px;
        top: 6px;
        right: 6px;
    }
    
    .status-text {
        font-size: 0.6rem;
        top: 20px;
        right: 6px;
    }
    
    .uptime-bar {
        height: 16px;
        margin: 6px 0;
    }
    
    .uptime-text {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }
    
    .location {
        font-size: 0.7rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    /* Center server header content on smaller mobile */
    .server-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .server-name {
        text-align: center;
        font-size: 2.2rem;
    }
    
    .server-description {
        text-align: center;
    }
    
    .server-status-section {
        justify-content: center;
        margin-top: 16px;
    }
    
    .server-status-badge {
        justify-content: center;
    }
    
    .status-text {
        text-align: center;
    }
    
    .header-main {
        text-align: center;
    }
}

@media (max-width: 320px) {
    .container {
        max-width: 100%;
        padding: 0 4px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .services-grid {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 4px;
        box-sizing: border-box;
    }
    
    .header-container {
        max-width: 100%;
        padding: 0 4px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .service-item {
        padding: 8px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .service-name {
        font-size: 0.8rem;
        padding-right: 60px;
    }
    
    .service-type {
        font-size: 0.55rem;
        padding: 1px 3px;
    }
    
    .status-text {
        font-size: 0.55rem;
    }
}

/* Admin Panel Styles */
.admin-container {
    width: 85% !important;
    max-width: none !important;
    min-width: none !important;
    margin: 0 auto !important;
    padding: 30px 20px;
    flex: 1;
}

/* Settings Form Styles */
.settings-form {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.settings-form .form-group input,
.settings-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.settings-form .form-group input:focus,
.settings-form .form-group textarea:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

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

.settings-form .form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.settings-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.settings-form .form-actions .btn {
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.settings-form .form-actions .btn-primary {
    background: var(--text-accent);
    color: white;
    border: 2px solid var(--text-accent);
}

.settings-form .form-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.settings-form .form-actions .btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

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

@media (max-width: 768px) {
    .settings-form {
        padding: 20px;
    }
    
    .settings-form .form-actions {
        flex-direction: column;
    }
    
    .settings-form .form-actions .btn {
        width: 100%;
    }
}

/* User Management Styles */
.users-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.user-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px var(--shadow-color);
    border-left: 4px solid var(--text-accent);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-card.superadmin {
    border-left-color: #ff3b30;
}

.user-card.technician {
    border-left-color: #ff9500;
}

.user-card.status_moderator {
    border-left-color: #34c759;
}

.user-card.inactive {
    opacity: 0.6;
    border-left-color: #8e8e93;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.user-info {
    flex: 1;
}

.user-info h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.user-info p {
    margin: 2px 0 0 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.superadmin {
    background: #ff3b30;
    color: white;
}

.role-badge.technician {
    background: #ff9500;
    color: white;
}

.role-badge.status_moderator {
    background: #34c759;
    color: white;
}

.user-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-actions select {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.user-actions button {
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-update {
    background: var(--text-accent);
    color: white;
}

.btn-update:hover {
    background: #0056b3;
}

.btn-toggle {
    background: var(--status-unknown);
    color: white;
}

.btn-toggle:hover {
    background: #6d6d70;
}

.btn-delete {
    background: var(--btn-danger);
    color: white;
}

.btn-delete:hover {
    background: var(--btn-danger-hover);
}

.add-user-form {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px var(--shadow-color);
    margin-bottom: 30px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .user-actions {
        flex-direction: column;
    }
}

/* Servers header with view toggle */
.servers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.servers-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.view-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.view-btn.active {
    background: var(--text-accent);
    color: var(--bg-secondary);
    box-shadow: 0 1px 3px var(--shadow-color);
}

.view-btn svg {
    flex-shrink: 0;
}

/* Desktop card grid layout */
.servers-desktop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.servers-desktop .server-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.servers-desktop .server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.servers-desktop .server-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.servers-desktop .server-card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.servers-desktop .server-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.servers-desktop .server-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.servers-desktop .server-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.servers-desktop .server-card-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.servers-desktop .server-card-meta-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.servers-desktop .server-card-meta-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-all;
}

.servers-desktop .server-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.servers-desktop .server-card-actions .btn {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: var(--text-accent);
    color: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--text-accent);
    transition: all 0.2s ease;
}

.servers-desktop .server-card-actions .btn:hover {
    background: var(--text-accent);
    opacity: 0.8;
}

.servers-desktop .server-card-actions .btn-danger {
    background: #cc2e24;
    border-color: #cc2e24;
}

.servers-desktop .server-card-actions .btn-danger:hover {
    background: #cc2e24;
    opacity: 0.8;
}

.servers-desktop .server-card-actions .btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-details {
    margin-bottom: 16px;
}

.server-url {
    margin-bottom: 12px;
    word-break: break-all;
}

.server-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.server-meta .server-type-badge {
    flex-shrink: 0;
}

.server-meta .toggle-active-btn {
    flex-shrink: 0;
}

.server-timing {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.last-checked {
    margin-bottom: 4px;
}

.server-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .admin-container {
        max-width: 100%;
        padding: 20px 16px;
    }
    
    .servers-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    /* Hide table view on mobile */
    .servers-table {
        display: none !important;
    }
    
    /* Ensure card view is visible on mobile but maintain grid layout */
    .servers-desktop {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Mobile-specific card adjustments */
    .servers-desktop .server-card {
        margin-bottom: 0;
        padding: 16px;
    }
    
    .servers-desktop .server-card-meta {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }
    
    .servers-desktop .server-card-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .servers-desktop .server-card-actions .btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* Admin Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
    margin-bottom: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    color: var(--text-primary);
    font-size: 0.9rem;
    vertical-align: top;
}

.admin-table tr:hover {
    background: var(--bg-tertiary);
}

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

.table-server-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.table-server-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

.table-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-select-small {
    padding: 4px 8px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.response-time-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.text-muted {
    color: var(--text-secondary);
    font-style: italic;
}

/* Table responsive styles */
@media (max-width: 1024px) {
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 12px;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .table-actions .btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 768px) {
    .servers-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 800px;
        font-size: 0.8rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 6px 8px;
        white-space: nowrap;
    }
    
    .table-server-description {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Additional styles for server cards and elements */
.toggle-active-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.toggle-active-btn:hover {
    background: var(--text-accent);
    color: var(--bg-secondary);
    border-color: var(--text-accent);
}

.server-url-link {
    color: var(--text-accent);
    text-decoration: none;
    word-break: break-all;
}

.server-url-link:hover {
    text-decoration: underline;
}

.server-type-badge {
    font-size: 0.9rem;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: background-color 0.3s ease;
}

.status-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.status-select:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.response-time-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (min-width: 769px) {
    .servers-mobile {
        display: none;
    }
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.admin-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.admin-header p {
    color: var(--text-secondary);
}

/* Admin sections */
.admin-section {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-bottom: 30px;
    transition: background-color 0.3s ease;
    width: 100% !important;
    max-width: none !important;
    min-width: none !important;
}

.admin-section h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.success-message {
    background: var(--status-available);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.error-message {
    background: var(--status-unavailable);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.empty-state {
    color: var(--text-secondary);
    text-align: center;
    padding: 40px;
    font-style: italic;
}

.server-url-link {
    color: var(--text-accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.server-url-link:hover {
    opacity: 0.8;
}

.server-type-badge {
    font-size: 0.9rem;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: background-color 0.3s ease;
}



.response-time-text {
    color: var(--text-secondary);
}



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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--text-accent);
    color: var(--bg-secondary);
    text-decoration: none;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    background: var(--text-accent);
    opacity: 0.8;
}

.btn-danger {
    background: #cc2e24;
}

.btn-danger:hover {
    background: #cc2e24;
    opacity: 0.8;
}

.btn-secondary {
    background: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--text-secondary);
    opacity: 0.8;
}

.servers-table {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-bottom: 30px;
    table-layout: fixed;
    transition: background-color 0.3s ease;
}

.servers-table th:nth-child(1),
.servers-table td:nth-child(1) { width: 15%; }
.servers-table th:nth-child(2),
.servers-table td:nth-child(2) { width: 20%; }
.servers-table th:nth-child(3),
.servers-table td:nth-child(3) { width: 8%; }
.servers-table th:nth-child(4),
.servers-table td:nth-child(4) { width: 12%; }
.servers-table th:nth-child(5),
.servers-table td:nth-child(5) { width: 8%; }
.servers-table th:nth-child(6),
.servers-table td:nth-child(6) { width: 15%; }
.servers-table th:nth-child(7),
.servers-table td:nth-child(7) { width: 22%; }

.servers-table th,
.servers-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.servers-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

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

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

/* Status Messages Styles */
.status-messages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-message-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px var(--shadow-color);
    border-left: 4px solid;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.status-message-card.severity-info {
    border-left-color: var(--text-accent);
}

.status-message-card.severity-warning {
    border-left-color: var(--status-maintenance);
}

.status-message-card.severity-critical {
    border-left-color: var(--status-unavailable);
}

.status-message-card.severity-maintenance {
    border-left-color: var(--status-maintenance);
}

.status-message-card.status-resolved {
    opacity: 0.7;
}

.status-message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.status-message-title h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.status-message-badges {
    display: flex;
    gap: 8px;
}

.severity-badge,
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-badge.severity-info {
    background: rgba(0, 122, 255, 0.1);
    color: var(--text-accent);
}

.severity-badge.severity-warning {
    background: rgba(255, 149, 0, 0.1);
    color: var(--status-maintenance);
}

.severity-badge.severity-critical {
    background: rgba(255, 59, 48, 0.1);
    color: var(--status-unavailable);
}

.severity-badge.severity-maintenance {
    background: rgba(255, 149, 0, 0.1);
    color: var(--status-maintenance);
}

.status-badge.status-active {
    background: rgba(52, 199, 89, 0.1);
    color: var(--status-available);
}

.status-badge.status-scheduled {
    background: rgba(255, 149, 0, 0.1);
    color: var(--status-maintenance);
}

.status-badge.status-resolved {
    background: rgba(142, 142, 147, 0.1);
    color: var(--status-unknown);
}

.status-message-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-message-content {
    margin-bottom: 16px;
}

.status-message-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.status-message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

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

.meta-item strong {
    color: var(--text-primary);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    min-width: 70px;
    text-align: center;
}

.btn-success {
    background: var(--status-available);
}

.btn-success:hover {
    background: var(--status-available);
    opacity: 0.8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 40px 20px;
}

/* Public Status Messages Styles */
.status-messages-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: background-color 0.3s ease;
}

.status-messages-section h2 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.public-status-message {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid;
    transition: background-color 0.3s ease;
}

.public-status-message:last-child {
    margin-bottom: 0;
}

.public-status-message.severity-info {
    border-left-color: var(--text-accent);
}

.public-status-message.severity-warning {
    border-left-color: var(--status-maintenance);
}

.public-status-message.severity-critical {
    border-left-color: var(--status-unavailable);
}

.public-status-message.severity-maintenance {
    border-left-color: var(--status-maintenance);
}

.public-message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.public-message-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.public-message-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.public-message-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.public-message-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.status-nav a {
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.status-nav a:hover,
.status-nav a.active {
    color: var(--text-accent);
    border-bottom-color: var(--text-accent);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .status-message-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .status-message-actions {
        align-self: flex-start;
    }
    
    .status-message-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .public-message-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .public-message-time {
        align-self: flex-start;
    }
}

.action-buttons .btn {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Public Status Messages Page Styles */

/* Overall Status Banner */
.overall-status-banner {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 16px;
    padding: 37.5px; /* 25% increase from 30px */
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.overall-status-banner.incident {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.overall-status-banner.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.overall-status-banner.critical {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.status-indicator .status-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-indicator .status-text h2 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.status-indicator .status-text p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* Section Headers */
.status-section {
    margin-bottom: 50px;
}

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

.section-header h2 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.incident-count, .time-range {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Status Message Cards */
.status-messages-list, .resolved-messages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-message-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.status-message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Incident Cards */
.incident-card {
    border-left: 6px solid var(--danger-color);
}

.incident-card.severity-critical {
    border-left-color: #e74c3c;
    background: linear-gradient(to right, rgba(231, 76, 60, 0.05), var(--bg-secondary));
}

.incident-card.severity-warning {
    border-left-color: #f39c12;
    background: linear-gradient(to right, rgba(243, 156, 18, 0.05), var(--bg-secondary));
}

.incident-card.severity-maintenance {
    border-left-color: #3498db;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.05), var(--bg-secondary));
}

.incident-card.severity-info {
    border-left-color: #9b59b6;
    background: linear-gradient(to right, rgba(155, 89, 182, 0.05), var(--bg-secondary));
}

/* Resolved Cards */
.resolved-card {
    border-left: 6px solid var(--success-color);
    opacity: 0.85;
}

.resolved-card:hover {
    opacity: 1;
}

/* Card Headers */
.card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.incident-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 60px;
}

.status-flag {
    font-size: 1.8rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.status-flag.faded {
    opacity: 0.6;
}

.incident-info {
    flex: 1;
}

.incident-title {
    color: var(--text-color);
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.incident-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Badges */
.severity-badge, .status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-badge.severity-critical {
    background: #e74c3c;
    color: white;
}

.severity-badge.severity-warning {
    background: #f39c12;
    color: white;
}

.severity-badge.severity-maintenance {
    background: #3498db;
    color: white;
}

.severity-badge.severity-info {
    background: #9b59b6;
    color: white;
}

.severity-badge.faded {
    opacity: 0.7;
}

.status-badge {
    background: var(--text-secondary);
    color: white;
}

.status-badge.status-active {
    background: #e74c3c;
    color: white;
}

.status-badge.status-investigating {
    background: #f39c12;
}

.status-badge.status-identified {
    background: #e67e22;
}

.status-badge.status-monitoring {
    background: #3498db;
}

.status-badge.status-resolved {
    background: #27ae60;
    color: white;
}

/* Affected Services */
.affected-service {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.affected-service.all-services {
    background: #e67e22;
}

.affected-service.faded {
    opacity: 0.7;
}

.service-icon {
    font-size: 0.9rem;
}

/* Time Display */
.incident-time {
    text-align: right;
    min-width: 120px;
}

.time-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.time-value {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.duration {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 4px;
    font-style: italic;
}

/* Card Body */
.card-body {
    padding: 25px;
}

.incident-description {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

.incident-description.resolved {
    color: var(--text-secondary);
}

/* Empty States */
.no-incidents-resolved {
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Responsive adjustments for status messages */
@media (max-width: 1024px) {
    .overall-status-banner {
        padding: 25px;
    }
    
    .status-indicator {
        gap: 15px;
    }
    
    .status-indicator .status-icon {
        font-size: 3rem;
    }
    
    .status-indicator .status-text h2 {
        font-size: 1.8rem;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .overall-status-banner {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .status-indicator {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .status-indicator .status-icon {
        font-size: 2.5rem;
    }
    
    .status-indicator .status-text h2 {
        font-size: 1.5rem;
    }
    
    .status-indicator .status-text p {
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .incident-indicator {
        flex-direction: row;
        min-width: auto;
        gap: 10px;
    }
    
    .incident-time {
        text-align: left;
        min-width: auto;
    }
    
    .incident-meta {
        gap: 6px;
    }
    
    .severity-badge, .status-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .affected-service {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .incident-title {
        font-size: 1.2rem;
    }
    
    .incident-description {
        font-size: 0.95rem;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
    
    .empty-state p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .overall-status-banner {
        padding: 15px;
    }
    
    .status-indicator .status-text h2 {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .incident-title {
        font-size: 1.1rem;
    }
    
    .status-flag {
        font-size: 1.5rem;
    }
    
    .incident-count, .time-range {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    /* Navbar responsive styles */
    .navbar-container {
        padding: 12px 15px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .navbar-brand h1 {
        font-size: 1.5rem;
    }
    
    .navbar-subtitle {
        font-size: 0.85rem;
    }
    
    .navbar-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .navbar-brand h1 {
        font-size: 1.3rem;
    }
    
    .navbar-subtitle {
        font-size: 0.8rem;
    }
    
    .navbar-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/* Section Header Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 90%;
    max-height: 101vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

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

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

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

.modal-body .form-actions .btn {
    min-width: 100px;
}

.modal-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.modal-info-grid {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 120px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 400;
    text-align: right;
    flex: 1;
}

#modalDescription {
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-tertiary);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

/* Dark mode specific modal styles */
[data-theme="dark"] .modal {
    background-color: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .modal-content {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Modal animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .info-value {
        text-align: left;
    }
}

/* Status Message Card Colors */
/* Resolved messages - Green */
.status-message-card.resolved {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
}

[data-theme="dark"] .status-message-card.resolved {
    background: linear-gradient(135deg, #1e3a2e 0%, #2d5a3d 100%);
    border-left: 4px solid #20c997;
}

/* Active messages - Severity based colors */
/* Info severity - Light blue */
.status-message-card.active.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
}

[data-theme="dark"] .status-message-card.active.info {
    background: linear-gradient(135deg, #1e3a42 0%, #2d5a6b 100%);
    border-left: 4px solid #20c997;
}

/* Warning severity - Yellow/Orange */
.status-message-card.active.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
}

[data-theme="dark"] .status-message-card.active.warning {
    background: linear-gradient(135deg, #3d3a1e 0%, #5a4d2d 100%);
    border-left: 4px solid #ffc107;
}

/* Critical severity - Red */
.status-message-card.active.critical {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid #dc3545;
}

[data-theme="dark"] .status-message-card.active.critical {
    background: linear-gradient(135deg, #3a1e20 0%, #5a2d30 100%);
    border-left: 4px solid #dc3545;
}

/* Maintenance severity - Purple */
.status-message-card.active.maintenance {
    background: linear-gradient(135deg, #e2d9f3 0%, #d1c4e9 100%);
    border-left: 4px solid #6f42c1;
}

[data-theme="dark"] .status-message-card.active.maintenance {
    background: linear-gradient(135deg, #2a1e3a 0%, #3d2d5a 100%);
    border-left: 4px solid #8a63d2;
}

/* Scheduled messages - Blue */
.status-message-card.scheduled {
    background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%);
    border-left: 4px solid #007bff;
}

[data-theme="dark"] .status-message-card.scheduled {
    background: linear-gradient(135deg, #1e2a3a 0%, #2d3e5a 100%);
    border-left: 4px solid #4dabf7;
}

/* Modal Header Colors */
/* Resolved modal header - Green */
.modal-header.resolved {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

[data-theme="dark"] .modal-header.resolved {
    background: linear-gradient(135deg, #1e3a2e 0%, #2d5a3d 100%);
    color: #20c997;
}

/* Active modal headers - Severity based colors */
/* Info severity - Light blue */
.modal-header.active.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

[data-theme="dark"] .modal-header.active.info {
    background: linear-gradient(135deg, #1e3a42 0%, #2d5a6b 100%);
    color: #20c997;
}

/* Warning severity - Yellow/Orange */
.modal-header.active.warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

[data-theme="dark"] .modal-header.active.warning {
    background: linear-gradient(135deg, #3d3a1e 0%, #5a4d2d 100%);
    color: #ffc107;
}

/* Critical severity - Red */
.modal-header.active.critical {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

[data-theme="dark"] .modal-header.active.critical {
    background: linear-gradient(135deg, #3a1e20 0%, #5a2d30 100%);
    color: #dc3545;
}

/* Maintenance severity - Purple */
.modal-header.active.maintenance {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    color: white;
}

[data-theme="dark"] .modal-header.active.maintenance {
    background: linear-gradient(135deg, #2a1e3a 0%, #3d2d5a 100%);
    color: #8a63d2;
}

/* Scheduled modal header - Blue */
.modal-header.scheduled {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

[data-theme="dark"] .modal-header.scheduled {
    background: linear-gradient(135deg, #1e2a3a 0%, #2d3e5a 100%);
    color: #4dabf7;
}

/* Modal close button styling for colored headers */
.modal-header.resolved .modal-close,
.modal-header.active .modal-close,
.modal-header.scheduled .modal-close {
    color: inherit;
    opacity: 0.8;
}

.modal-header.resolved .modal-close:hover,
.modal-header.active .modal-close:hover,
.modal-header.scheduled .modal-close:hover {
    opacity: 1;
}

/* Filter Section Styles */
.filter-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    margin: 0;
}

.status-filter-dropdown {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.status-filter-dropdown:hover {
    border-color: #007bff;
}

.status-filter-dropdown:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Dark mode filter styles */
[data-theme="dark"] .filter-section {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .filter-label {
    color: #e2e8f0;
}

[data-theme="dark"] .status-filter-dropdown {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-theme="dark"] .status-filter-dropdown:hover {
    border-color: #63b3ed;
}

[data-theme="dark"] .status-filter-dropdown:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.25);
}

/* Scheduled Messages Styles */
.scheduled-section {
    margin-bottom: 40px;
}

.scheduled-card {
    border-left: 4px solid #17a2b8;
    background: #f8f9fa;
}

.scheduled-card .card-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
}

.incident-indicator.scheduled {
    background: #17a2b8;
    color: white;
}

.status-badge.status-scheduled {
    background: #17a2b8;
    color: white;
}

.scheduled-time {
    text-align: right;
}

.scheduled-time .time-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.scheduled-time .time-value {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.no-scheduled-messages .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-scheduled-messages .empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-scheduled-messages h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 18px;
}

.no-scheduled-messages p {
    margin: 0;
    font-size: 14px;
}

/* Dark mode scheduled styles */
[data-theme="dark"] .scheduled-card {
    background: #2d3748;
    border-left-color: #63b3ed;
}

[data-theme="dark"] .scheduled-card .card-header {
    background: linear-gradient(135deg, #2a4365 0%, #2d3748 100%);
}

[data-theme="dark"] .incident-indicator.scheduled {
    background: #63b3ed;
    color: #1a202c;
}

[data-theme="dark"] .status-badge.status-scheduled {
    background: #63b3ed;
    color: #1a202c;
}

[data-theme="dark"] .scheduled-time .time-label {
    color: #a0aec0;
}

[data-theme="dark"] .scheduled-time .time-value {
    color: #e2e8f0;
}

[data-theme="dark"] .no-scheduled-messages .empty-state {
    color: #a0aec0;
}

[data-theme="dark"] .no-scheduled-messages h3 {
    color: #e2e8f0;
}

/* Section visibility for filtering */
.status-section.hidden {
    display: none;
}

/* Responsive filter styles */
@media (max-width: 768px) {
    .filter-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .status-filter-dropdown {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 12px;
        margin: 0 -10px 20px -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .scheduled-time {
        text-align: left;
        margin-top: 10px;
    }
    
    .scheduled-time .time-label,
    .scheduled-time .time-value {
        display: inline;
        margin-right: 10px;
    }
}

/* Login Page Styles */
.login-container {
    max-width: 900px;
    min-width: 750px;
    margin: 100px auto;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
}

.error-message {
    background: var(--btn-danger);
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: var(--text-accent);
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Custom Checkbox Styling */
.form-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.form-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.form-group input[type="checkbox"]:hover {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group input[type="checkbox"]:checked {
    background: var(--text-accent);
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.form-group input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.form-group input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.form-group input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-group label:hover {
    color: var(--text-accent);
}

/* Dark theme checkbox adjustments */
[data-theme="dark"] .form-group input[type="checkbox"] {
    border-color: var(--border-color);
    background: var(--bg-tertiary);
}

[data-theme="dark"] .form-group input[type="checkbox"]:hover {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

[data-theme="dark"] .form-group input[type="checkbox"]:checked {
    background: var(--text-accent);
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

[data-theme="dark"] .form-group input[type="checkbox"]:focus {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
}

/* System Information Dashboard Styles */
.system-overview {
    padding: 20px 0;
}

.system-overview h2 {
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.stat-content h3 {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
}

.stat-number {
    color: var(--text-accent);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.system-details {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.detail-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: background-color 0.3s ease;
}

.detail-section h3 {
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.detail-section.error {
    border-left: 4px solid var(--status-unavailable);
}

.detail-section.error h3 {
    color: var(--status-unavailable);
}

.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

.quick-actions {
    margin-top: 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: background-color 0.3s ease;
}

.quick-actions h3 {
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.action-buttons .btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-buttons .btn-primary {
    background: var(--text-accent);
    color: white;
}

.action-buttons .btn-primary:hover {
    background: var(--text-accent);
    opacity: 0.9;
    transform: translateY(-1px);
}

.action-buttons .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.action-buttons .btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.action-buttons .btn-outline {
    background: transparent;
    color: var(--text-accent);
    border: 2px solid var(--text-accent);
}

.action-buttons .btn-outline:hover {
    background: var(--text-accent);
    color: white;
    transform: translateY(-1px);
}

/* Responsive adjustments for system dashboard */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .system-details {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .detail-section {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .detail-value {
        text-align: left;
    }
}

/* Users Management Styles */

.table-container {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.users-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.users-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.users-table tr:hover {
    background: var(--bg-hover);
}

.users-table tr.inactive-row {
    opacity: 0.6;
}

.current-user-badge {
    background: var(--text-accent);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 500;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.role-select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 12px;
    margin-right: 5px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.text-muted {
    color: var(--text-secondary);
    font-style: italic;
}



/* Responsive table */
@media (max-width: 768px) {
    .users-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .users-table {
        min-width: 800px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}