﻿/* Custom background and effects that Bootstrap doesn't handle */
[data-bs-theme="dark"] body {
    background-color: #121212;
    background-image: url('../images/background_dark.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

[data-bs-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
    pointer-events: none;
}

/* Glass effect cards */
[data-bs-theme="dark"] .card-glass {
    background-color: rgba(31, 31, 31, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

[data-bs-theme="dark"] .card-glass .card-header {
    background-color: rgba(42, 42, 42, 0.6) !important;
}

[data-bs-theme="dark"] .card-glass .card-body {
    background-color: rgba(31, 31, 31, 0.4) !important;
}

/* Custom info box */
[data-bs-theme="dark"] .info-box {
    border: 1px solid #333333;
    color: gray;
    background-color: rgba(0, 0, 0, 0.95);
}

/* Custom form styling */
[data-bs-theme="dark"] .customForm-input-width {
    background-color: rgba(31, 31, 31, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(2px);
}

/* FTP Fields custom styling */
[data-bs-theme="dark"] #ftpFields {
    background-color: rgba(42, 42, 42, 0.95);
    border-color: #333333;
    color: #ffffff;
}

[data-bs-theme="dark"] #ftpFields h6 {
    color: #ffffff;
}

/* Global Loading Indicator Dark Mode */
[data-bs-theme="dark"] #globalLoadingIndicator .bg-light {
    background-color: rgba(42, 42, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] #globalLoadingIndicator .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-bs-theme="dark"] #globalLoadingIndicator .spinner-border {
    color: #6c757d !important;
}

[data-bs-theme="dark"] #globalLoadingIndicator .bg-danger {
    background-color: rgba(220, 53, 69, 0.9) !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    backdrop-filter: blur(10px);
}

/* Loading overlay dark mode */
[data-bs-theme="dark"] .loading-overlay {
    opacity: 0.5;
}

/* Spinner variations for dark mode */
[data-bs-theme="dark"] .spinner-border {
    color: #6c757d;
}

[data-bs-theme="dark"] .text-primary .spinner-border {
    color: #0d6efd !important;
}

/* Download sections loading states */
[data-bs-theme="dark"] #apkFiles .spinner-border,
[data-bs-theme="dark"] #desktopFiles .spinner-border {
    color: rgba(255, 255, 255, 0.6);
}

[data-bs-theme="dark"] #apkFiles .text-center p,
[data-bs-theme="dark"] #desktopFiles .text-center p {
    color: rgba(255, 255, 255, 0.8);
}

/* Sidebar styling - will be handled by separate CSS */
[data-bs-theme="dark"] .sidebar {
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 100%);
    box-shadow: 2px 0 20px rgba(0,0,0,0.5);
}

[data-bs-theme="dark"] .mobile-sidebar {
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 100%);
    box-shadow: 2px 0 20px rgba(0,0,0,0.5);
}

[data-bs-theme="dark"] .sidebar-header,
[data-bs-theme="dark"] .mobile-sidebar-header {
    background: rgba(0,0,0,0.4);
}

[data-bs-theme="dark"] .sidebar-toggle-btn,
[data-bs-theme="dark"] .mobile-sidebar-toggle {
    background: #2d3748;
}

[data-bs-theme="dark"] .sidebar-toggle-btn:hover,
[data-bs-theme="dark"] .mobile-sidebar-toggle:hover {
    background: #1a202c;
}

[data-bs-theme="dark"] .sidebar-link,
[data-bs-theme="dark"] .mobile-sidebar-link {
    color: rgba(255,255,255,0.8) !important;
}

[data-bs-theme="dark"] .sidebar-link:hover,
[data-bs-theme="dark"] .mobile-sidebar-link:hover {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .sidebar-link.active,
[data-bs-theme="dark"] .mobile-sidebar-link.active {
    background: rgba(255,255,255,0.1);
    color: #f7fafc !important;
}
