/* =====================================================
   websites/admin/css/control-room.css
   Custom CSS for Control Room Dashboard
   ===================================================== */

/* Base styles */
body {
    background: linear-gradient(135deg, #0f0f12 0%, #1a1a24 100%);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Glass morphism cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Custom toggle switch (IOS Style) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3f3f46;
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #10b981;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Custom slider */
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #3f3f46;
    border-radius: 5px;
    outline: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #10b981;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #34d399;
}

.custom-slider:disabled::-webkit-slider-thumb {
    background: #6b7280;
    cursor: not-allowed;
}

/* Number input */
.number-input {
    background: #1f1f24;
    border: 1px solid #3f3f46;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.2s ease;
}

.number-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.number-input:hover {
    border-color: #52525b;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1f1f24;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* Tab styling */
.tab-btn {
    position: relative;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #34d399;
}

.tab-active {
    color: #10b981;
    border-bottom: 2px solid #10b981;
}

/* Toast animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast {
    animation: slideIn 0.3s ease-out;
}

.toast-exit {
    animation: slideOut 0.3s ease-in;
}

/* Status banner transitions */
#statusBanner {
    transition: background-color 0.3s ease;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #3f3f46;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-card {
        padding: 1rem;
    }
    
    .tab-btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .toggle-switch {
        width: 44px;
        height: 24px;
    }
    
    .toggle-slider:before {
        height: 18px;
        width: 18px;
    }
    
    input:checked + .toggle-slider:before {
        transform: translateX(20px);
    }
}

/* Dark mode input spinners */
.number-input::-webkit-inner-spin-button,
.number-input::-webkit-outer-spin-button {
    opacity: 0.5;
    background: #3f3f46;
}

/* Focus visible outline */
button:focus-visible,
.toggle-switch:focus-visible,
.custom-slider:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Disabled state */
input:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Category card hover */
.category-card {
    transition: all 0.2s ease;
}

.category-card:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}