/**
 * MolonTools - Global Dark Mode Theme
 */

/* Flotating Toggle Button */
.theme-toggle-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #2d3436;
    color: #f1c40f;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 99999;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

/* Dark Mode Overrides */
body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .card,
body.dark-mode .container,
body.dark-mode .navbar,
body.dark-mode .sidebar-recent,
body.dark-mode #calendar {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode th,
body.dark-mode td {
    border-color: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode th {
    background-color: #2c3e50 !important;
    color: #ecf0f1 !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #2d3436 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .fc-theme-bootstrap5 td, 
body.dark-mode .fc-theme-bootstrap5 th, 
body.dark-mode .fc-theme-bootstrap5 .fc-scrollgrid {
    border-color: #444 !important;
}

body.dark-mode .fc-day-today {
    background-color: rgba(255,255,255,0.05) !important;
}

body.dark-mode .theme-toggle-btn {
    background: #f1c40f;
    color: #2d3436;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4,
body.dark-mode .card-header {
    color: #f8f9fa !important;
}

/* Fix specific backgrounds */
body.dark-mode .stat-card {
    background: #2d3436 !important;
    border: 1px solid #444 !important;
}
body.dark-mode .stat-value {
    color: #fff !important;
}

/* Glassmorphism Dark Mode Overrides */
body.dark-mode .auth-container,
body.dark-mode .launchpad-container {
    background: rgba(30, 41, 59, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .app-card {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .app-card:hover {
    background: rgba(45, 52, 54, 0.9) !important;
    border-color: rgba(52, 152, 219, 0.6) !important;
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.2) !important;
}
