/* ===== BEKAT ZABBIX DASHBOARD STYLES ===== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: auto;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles - NATURAL LOGO SIZE */
.header {
    margin-bottom: 8px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: auto;
    max-height: none;
    overflow: visible;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px;
    min-height: auto;
    max-height: none;
}

.logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #00d4ff, #5856ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    font-weight: 300;
}

/* Header Content Layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    padding: 5px 8px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.last-updated {
    font-size: 0.7rem;
    color: #b0b0b0;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Stats Container - RESTORED SPACING */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0 0 7px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    min-width: 240px;
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #b0b0b0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-card.online .stat-number {
    color: #00ff88;
}

.stat-card.offline .stat-number {
    color: #ff4444;
}

/* Controls Section - REDUCED SPACING */
.controls-section {
    margin-bottom: 15px;
}

.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.controls-container h4 {
    padding: 5px 0 5px 5px;
    margin: 0;
}

.metric-selection-container h4 {
    padding: 10px 0 10px 15px;
    margin: 0;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.search-container label {
    font-weight: 500;
    color: #e0e0e0;
    white-space: nowrap;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.search-input::placeholder {
    color: #888;
}

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

.auto-refresh-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-refresh-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.auto-refresh-toggle label {
    color: #e0e0e0;
    font-weight: 500;
    cursor: pointer;
}

.online-only-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-only-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.online-only-toggle label {
    color: #e0e0e0;
    font-weight: 500;
    cursor: pointer;
}

.refresh-btn {
    padding: 10px 16px;
    background: linear-gradient(45deg, #00d4ff, #5856ff);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.logout-btn {
    padding: 10px 16px;
    background: linear-gradient(45deg, #00d4ff, #5856ff);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
    color: white;
    text-decoration: none;
}

.logout-icon {
    font-size: 16px;
}

/* Metric Selection */
.metric-selection {
    margin-bottom: 20px;
}

.metric-selection h3 {
    margin-bottom: 15px;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.metric-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.metric-checkbox:hover {
    background: rgba(255, 255, 255, 0.15);
}

.metric-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.metric-checkbox label {
    color: #e0e0e0;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

/* Status and Last Updated */
.status-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00d4ff;
}

.last-updated {
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Error Message */
.error-message {
    background: linear-gradient(45deg, #ff4444, #cc1111);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ff6666;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Server Grid Container */
.servers-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Servers Header Styling */
.servers-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
}

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.current-group-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.group-label {
    font-weight: 600;
    color: #00d4ff;
    font-size: 0.9rem;
}

.group-name {
    font-weight: 500;
    color: #ffffff;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.change-group-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(45deg, #5856ff, #00d4ff);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(88, 86, 255, 0.3);
}

.change-group-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 86, 255, 0.4);
    text-decoration: none;
    color: white;
}

.change-icon {
    font-size: 14px;
}

.sort-hint {
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 170, 0, 0.2);
    white-space: nowrap;
}

/* No Servers Message */
.no-servers {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.1rem;
}

/* Metrics Grid Layout - SIMPLIFIED */
.metrics-grid {
    display: grid !important;
    grid-auto-flow: row !important;
    gap: 0 !important;
    border: 1px solid #333;
    border-radius: 8px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    min-width: max-content !important;
    background: #0a0a0a !important;
    /* Let JavaScript control the template completely */
    grid-template-rows: auto !important;
    grid-auto-rows: 28px !important;
    padding-left: 15px;
    /* Ensure smooth transitions for filtering */
    transition: all 0.2s ease;
}

.metric-column-header {
    background: #1a1a1a;
    border-bottom: 2px solid #333;
    border-right: 1px solid #333;
    padding: 8px 12px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
}

.metric-column-header:hover {
    background: #2a2a2a;
}

.metric-column-header h3 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.sort-indicator {
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.metric-column-header:hover .sort-indicator {
    opacity: 1;
}

/* Server Column Specific Styles */
.server-column-header {
    background: #1a1a1a !important;
    min-width: 180px !important;
    max-width: 250px !important;
    text-align: left !important;
    padding: 8px 12px !important;
}

.server-column {
    background: #1a1a1a !important;
    padding: 6px 12px !important;
    min-width: 180px !important;
    max-width: 250px !important;
}

/* Metric Items */
.metric-item {
    background: #0a0a0a;
    border-right: 1px solid #333;
    padding: 4px 8px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #ffffff;
    border-bottom: 1px solid #1a1a1a;
    transition: all 0.2s ease;
    /* Ensure proper grid behavior */
    overflow: hidden;
}

.metric-item:hover {
    background: #1a1a1a;
}

/* Server Name Item */
.server-name-item {
    text-align: left !important;
    justify-content: flex-start !important;
    padding: 6px 12px !important;
    background: #1a1a1a !important;
}

.server-name-display {
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Metric Bar Styles */
.metric-bar-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.metric-bar-bg {
    flex: 1;
    height: 12px;
    background: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.metric-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #00ff88, #ffaa00, #ff4444);
}

.cpu-bar {
    background: linear-gradient(90deg, #00ff88 0%, #ffaa00 60%, #ff4444 85%);
}

.memory-bar {
    background: linear-gradient(90deg, #4fc3f7 0%, #29b6f6 60%, #ff4444 85%);
}

.disk-bar {
    background: linear-gradient(90deg, #ab47bc 0%, #8e24aa 60%, #ff4444 85%);
}

.disk-activity-bar {
    background: linear-gradient(90deg, #66bb6a 0%, #43a047 60%, #ff4444 85%);
}

.network-bar {
    background: linear-gradient(90deg, #26c6da 0%, #00acc1 60%, #ff4444 85%);
}

.metric-value {
    font-weight: 600;
    min-width: 45px;
    text-align: right;
    font-size: 11px;
}

/* Status Styles */
.status-indicator {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    display: block !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    aspect-ratio: 1 / 1 !important;
}

.status-online .status-indicator {
    background-color: #00ff88 !important;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6) !important;
}

.status-offline .status-indicator {
    background-color: #ff4444 !important;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.6) !important;
}

.status-disabled .status-indicator {
    background-color: #666666 !important;
    box-shadow: 0 0 8px rgba(102, 102, 102, 0.6) !important;
}

.status-unknown .status-indicator {
    background-color: #ffaa00 !important;
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.6) !important;
}

/* Status Column Styles */
.status-metric {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 2px !important;
    min-width: 40px !important;
    max-width: 60px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
}

/* Status Column Header - Match the width of status metric items */
.metric-column-header.metric-status {
    min-width: 40px !important;
    max-width: 60px !important;
    text-align: center !important;
    padding: 4px 2px !important;
    margin: 0 !important;
    border-left: none !important;
    border-right: 1px solid #333 !important;
}

/* Status Classes */
.status-online {
    color: #00ff88;
}

.status-offline {
    color: #ff4444;
}

.status-disabled {
    color: #666666;
}

.status-unknown {
    color: #ffaa00;
}

/* Metric Color Classes */
.status-good {
    color: #00ff88;
}

.status-warning {
    color: #ffaa00;
}

.status-critical {
    color: #ff4444;
}

.status-normal {
    color: #ffffff;
}

/* Problem Badge */
.problem-badge {
    background: #ff4444;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

/* Network Speed Text */
.network-speed {
    font-size: 10px;
    font-weight: 500;
}

/* Uptime Text */
.uptime-text {
    font-size: 11px;
    color: #b0b0b0;
}

/* Metric Hidden Class - Simple approach */
.metric-hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .controls-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        min-width: 100%;
    }
    
    .refresh-container {
    justify-content: center;
}
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .logo-container {
        justify-content: center;
    }
    
    .metric-checkboxes {
        flex-direction: column;
    }
    
    .status-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .metric-item {
        font-size: 11px;
    }
    
    .metric-column-header h3 {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .metric-bar-container {
        flex-direction: column;
        gap: 4px;
        min-width: 60px;
    }
    
    .metric-value {
        min-width: 35px;
        font-size: 10px;
    }
}

/* Animation for loading states */
@keyframes pulse {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.5;
    }
}

.loading-metric {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Hover effects for better UX */
.metric-checkbox:hover {
    transform: translateY(-1px);
}

.refresh-btn:active {
    transform: translateY(0);
}

/* Focus styles for accessibility */
.search-input:focus,
.metric-checkbox input:focus,
.refresh-btn:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .metric-item {
        border-color: #ffffff;
    }
    
    .metric-column-header {
        border-color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Problems Popup Styling */
.problems-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.problems-popup-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 600px;
    min-width: 400px;
    max-height: 70vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: popup-appear 0.2s ease-out;
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.problems-popup-header {
    background: #2a2a2a;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.problems-popup-header h3 {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 600;
}

.problems-popup-close {
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.problems-popup-close:hover {
    color: #ff4444;
}

.problems-popup-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.problems-loading {
    text-align: center;
    color: #888;
    padding: 20px;
}

.problems-loading span {
    display: inline-block;
    animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.problems-list {
    max-height: 40vh;
    overflow-y: auto;
}

.problem-item {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.4;
    transition: background-color 0.2s ease;
}

.problem-item:hover {
    background: #333;
}

.problem-item:last-child {
    margin-bottom: 0;
}

.problems-error {
    text-align: center;
    color: #ff4444;
    padding: 20px;
}

.problems-empty {
    text-align: center;
    color: #888;
    padding: 20px;
    font-style: italic;
}

/* Scrollbar styling for problems list */
.problems-list::-webkit-scrollbar {
    width: 8px;
}

.problems-list::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.problems-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.problems-list::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* ===== RESIZABLE COLUMNS ===== */

/* Resize Handle */
.column-resize-handle {
    position: absolute;
    top: 0;
    right: -3px;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    z-index: 10;
    border-right: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.column-resize-handle:hover {
    border-right-color: #4CAF50;
}

.column-resize-handle.resizing {
    border-right-color: #81C784;
    background: rgba(76, 175, 80, 0.1);
}

/* Visual feedback during resize */
.metrics-grid.resizing {
    user-select: none;
    cursor: col-resize;
}

.metrics-grid.resizing * {
    pointer-events: none;
}

/* Ensure headers are positioned for resize handles */
.metric-column-header,
.server-column-header {
    position: relative;
    overflow: visible;
}

/* Visual resize indicator line */
.resize-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4CAF50;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.7;
    display: none;
}

/* ===== CONFIGURATION PAGE STYLES ===== */

/* Configuration container */
.config-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.config-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #404040;
}

.config-section h2 {
    color: #e0e0e0;
    margin: 0 0 16px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.config-description {
    color: #b0b0b0;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Host Groups Grid - 4 columns, alphabetical vertical arrangement */
.host-groups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.host-groups-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.host-group-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #333;
    border-radius: 6px;
    border: 1px solid #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.host-group-checkbox:hover {
    background: #3a3a3a;
    border-color: #666;
}

.host-group-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4CAF50;
}

.checkbox-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}

/* Selection summary */
.selection-summary {
    color: #b0b0b0;
    font-size: 0.9rem;
    text-align: center;
    padding: 12px;
    background: #333;
    border-radius: 6px;
    border: 1px solid #555;
}

.selection-summary #selected-count {
    color: #4CAF50;
    font-weight: 600;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.metric-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #333;
    border-radius: 6px;
    border: 1px solid #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.metric-checkbox:hover {
    background: #3a3a3a;
    border-color: #666;
}

.metric-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4CAF50;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.save-btn, .reset-btn, .select-all-btn, .deselect-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-btn {
    background: #4CAF50;
    color: white;
}

.save-btn:hover {
    background: #45a049;
}

.reset-btn {
    background: #f44336;
    color: white;
}

.reset-btn:hover {
    background: #da190b;
}

.select-all-btn {
    background: #2196F3;
    color: white;
}

.select-all-btn:hover {
    background: #1976D2;
}

.deselect-all-btn {
    background: #FF9800;
    color: white;
}

.deselect-all-btn:hover {
    background: #F57C00;
}

/* Configuration page header */
.config-title {
    color: #e0e0e0;
    font-size: 1.8rem;
    font-weight: 600;
    margin-left: 15px;
    line-height: 1;
}

.logo-container {
    display: flex;
    align-items: center;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(45deg, #00d4ff, #5856ff);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.back-icon {
    font-size: 1.1rem;
}

/* Success and error banners */
.success-banner, .error-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.success-banner {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.error-banner {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

.success-icon, .error-icon {
    font-size: 1.2rem;
}

/* ===== FOOTER STYLES ===== */

.footer {
    position: static;
    width: 100%;
    padding: 12px 0;
    background: rgba(42, 42, 42, 0.8);
    border-top: 1px solid #404040;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.version-info {
    color: #888;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}