/* Dark Mode Stylesheet - Add to any HTML file for night light support */

/* Dark Mode Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Dark Mode Base Colors */
body.dark-mode {
    background: #0f1419 !important;
    color: #e0e0e0 !important;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode .theme-toggle {
    background: rgba(30, 30, 50, 0.9);
    color: #00d4ff;
}

/* Dark Mode for Common Elements */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #a8dadc;
}

body.dark-mode a {
    color: #00d4ff;
}

body.dark-mode a:hover {
    color: #00ffff;
}

body.dark-mode button,
body.dark-mode input[type="button"],
body.dark-mode input[type="submit"] {
    background: #667eea !important;
    color: white !important;
}

body.dark-mode button:hover,
body.dark-mode input[type="button"]:hover,
body.dark-mode input[type="submit"]:hover {
    background: #764ba2 !important;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-color: #667eea !important;
}

body.dark-mode .card,
body.dark-mode .panel,
body.dark-mode .container {
    background: #16213e !important;
    color: #e0e0e0 !important;
}

body.dark-mode table {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
}

body.dark-mode table th {
    background: #667eea !important;
    color: white !important;
}

body.dark-mode table td {
    border-color: #667eea !important;
}

body.dark-mode table tr:hover {
    background: #16213e !important;
}

body.dark-mode .modal,
body.dark-mode .popup {
    background: #16213e !important;
    color: #e0e0e0 !important;
}

body.dark-mode .status-panel {
    background: #1a1a2e !important;
    border-color: #667eea !important;
}

body.dark-mode .map-panel {
    background: #16213e !important;
}

/* Preserve specific colors for important elements */
body.dark-mode .alert-success {
    background: rgba(76, 175, 80, 0.2) !important;
    color: #81c784 !important;
}

body.dark-mode .alert-danger {
    background: rgba(244, 67, 54, 0.2) !important;
    color: #ef5350 !important;
}

body.dark-mode .alert-warning {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #fdd835 !important;
}

body.dark-mode .alert-info {
    background: rgba(33, 150, 243, 0.2) !important;
    color: #42a5f5 !important;
}

/* Smooth transitions for dark mode */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode for specific classes used in project */
body.dark-mode .feature-card {
    background: #1a1a2e !important;
    border-color: #667eea !important;
}

body.dark-mode .badge {
    background: #667eea !important;
    color: white !important;
}

body.dark-mode .dropdown-menu {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
}

body.dark-mode .dropdown-menu a {
    color: #00d4ff !important;
}

body.dark-mode .dropdown-menu a:hover {
    background: #667eea !important;
    color: white !important;
}
