/* CSS Stylesheet */

/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    /* font-family: 'Roboto', Arial, sans-serif; /* Roboto as primary font */
    background-color: #f7fafc;
    color: #333;
}

/* Logo styles */
.logo {
    float: left;
    margin-right: 20px;
}

.logo img {
    width: auto;
    height: 50px; /* Adjust the height as needed */
}

/* Container styles */
.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background-color: #ffffff;
    padding: 0px 8px;
    border-bottom: 1px solid #e6e6e6;
}

.content {
    /* max-width: 1300px; */
    margin: 0 auto;
    padding: 20px 16px;
}

.nav-link {
    transition: color 0.3s ease;
    font-size: 16px;
    /* padding: 8px 6px; */
}

.nav-link:hover {
    /* color: #FF9900; */
    color: #25aae1;
}

.nav-link.current {
    color: #007bff; /* Octa City blue*/    
}

#logout.nav-link:hover {
    color: red; /* Hugging Face accent color */
}


.icon:hover {
    /* color: #FF9900; */
    color: #25aae1;
}

.mobile-menu {
    border-bottom: 1px solid #e6e6e6;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Main styles */
main {
    padding: 20px 0;
}

/* Footer styles */
footer {
    background: linear-gradient(to right, #0077ff, #00b4d8); /* Blue gradient */
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 0.9em;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        width: 90%;
    }
    header h1 {
        font-size: 1.5em;
    }
    nav ul li {
        display: block;
        margin: 10px 0;
    }
}

/* CSS for hiding the menu by default */
nav#menu {
    display: none;
}

/* CSS for the mobile menu button */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin-bottom: 5px;
}

/* CSS for showing the menu on larger screens */
@media screen and (min-width: 768px) {
    nav#menu {
        display: block;
    }
    .menu-toggle {
        display: none;
    }
}

.mobile-menu {
    background-color: rgb(255 255 255);
    border-bottom: 1px solid #e6e6e6;
}

#profileMenu {
    background-color: #ffffff; /* White background for light theme */
    color: #2d3748; /* Dark text for readability */
    transition: background-color 0.3s ease, color 0.3s ease;
}

#profileMenu a:hover {
    background-color: #f1f5f9; /* Light grayish-blue for hover effect */
    color: #1a202c; /* Slightly darker text on hover */
}

#profileMenu .darkmode-toggle:hover {
    background-color: #f1f5f9; /* Consistent light hover color */
    color: #1a202c; /* Slightly darker text on hover */
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.fab:hover {
    background-color: #0056b3;
}

.fab i {
    font-size: 1.5rem;
}

/* Dark mode toggle base styles */
label {
    position: relative;
    display: inline-flex;
    align-items: center;
}

#toggleBg {
    transition: background-color 0.3s ease;
}

#darkModeToggle:checked + #toggleBg {
    background-color: #4caf50; /* Green when checked */
}

#darkModeToggle:checked + #toggleBg + .absolute {
    transform: translateX(1.25rem); /* Moves the knob */
}

#toggleBg {
    position: relative;
    transition: background-color 0.3s;
}

#toggleBg input:checked + .w-11.h-6 {
    background-color: #4caf50; /* Green for active */
}

#toggleBg input:checked + div .absolute {
    transform: translateX(1.25rem); /* Move the toggle knob */
}

/* General body styles for dark mode */

/* General styles for headings */
h1, h2, h3, h4, h5, h6 {
    color: inherit;
    transition: color 0.3s ease;
}


/* Headings and inline elements */
body.dark h1, 
body.dark h2, 
body.dark h3, 
body.dark h4, 
body.dark h5, 
body.dark h6, 
body.dark i,
/* body.dark span,  */
body.dark p, 
body.dark label,
body.dark a {
    color: #f7fafc;
}

body.dark a {
    color: #f7fafc;
}

/* Number color in dashboard boxes  */
body.dark #camera-count {
    color: rgb(79 70 229);
}
body.dark #event-active-count {
    color: rgb(220 38 38);
}
body.dark #event-pending-count {
    color: rgb(202 138 4);
}
body.dark #event-resolved-count {
    color: rgb(22 163 74);
}

/* Specific div sections  */
body.dark,
body.dark .mobile-menu, 
body.dark aside, 
body.dark section, 
body.dark .chart-section,
body.dark .chart,
body.dark .modal,
body.dark .modal-content,
body.dark .delete-modal-content,
body.dark .close-modal,
body.dark #profileMenu {
    background-color: #1a202c; /* Dark background */
    color: #f7fafc; /* Light text */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Drowdown menu  */
body.dark #profileMenu {
    background-color: #1e293b; /* Deep slate-gray background */
    color: #cbd5e1; /* Soft light-gray text */
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark #profileMenu a {
    color: #e2e8f0; /* Neutral soft light-gray text for items */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark #profileMenu a:hover {
    background-color: #475569; /* Slightly lighter slate-gray for hover */
    color: #f8fafc; /* Bright neutral white for hover text */
}

body.dark #profileMenu .darkmode-toggle:hover {
    background-color: #475569; /* Matches hover for consistency */
    color: #f8fafc; /* Bright neutral white for text */
}

/* Class Pill */
body.dark .class-pill {
    color: #2d3748;
}

/* Header */
body.dark .header {
    background-color: #2d3748;
    border-bottom-color: #4a5568;
}

/* Navigation links */
body.dark .nav-link {
    color: #cbd5e0;
}

body.dark .nav-link.current {
    color: #90cdf4; /* Lighter blue for the current nav link */
}

body.dark .nav-link:hover {
    color: #63b3ed; /* Brighter blue on hover */
}

/* Dark mode styling for the card */
body.dark .class-card {
    background-image: none;
}

body.dark .card,
body.dark .class-card,
body.dark .camera-form,
#event-details #button-area {
    background-color: #2d3748; /* Dark background for card */
    color: #f7fafc; /* Light text color for dark mode */
    border: 1px solid #4a5568; /* Dark border for card */
}

/* Card header title in dark mode */
body.dark .card-header h3 {
    color: #f7fafc; /* Light text color for heading */
}

/* Card text and other paragraphs in dark mode */
body.dark .card p {
    color: #cbd5e0; /* Light gray text color for paragraphs */
}

/* Info icon and tooltip in dark mode */
body.dark .info-icon-container .info-icon {
    color: #90cdf4; /* Light blue for the info icon */
}

/* Switch container text in dark mode */
body.dark .switch-container .pause-toggle-text {
    color: #cbd5e0; /* Light gray for the switch text */
}

/* Delete icon in dark mode */
/* body.dark .delete-icon {
    color: #e53e3e;
} */

/* Dark mode hover effect for card elements if needed */
body.dark .card:hover {
    background-color: #4a5568; /* Slightly lighter dark background on hover */
}

/* Tooltip styling for dark mode */
body.dark .tooltip {
    background-color: #2d3748; /* Dark background for tooltip */
    color: #f7fafc; /* Light text for tooltip */
}


/* Tables */
body.dark table {
    border-color: #4a5568;
}
body.dark table th, 
body.dark table td {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #f7fafc;
}

/* Buttons */
body.dark .btn {
    background-color: #4a5568;
    color: #f7fafc;
    border-color: #4a5568;
    transition: background-color 0.3s ease, color 0.3s ease;
}
body.dark .btn:hover {
    background-color: #5a6e7f;
    color: #e2e8f0;
}

/* Form Inputs */
body.dark input, 
body.dark textarea, 
body.dark select {
    background-color: #2d3748;
    color: #f7fafc;
    border-color: #4a5568;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
body.dark input:focus, 
body.dark textarea:focus, 
body.dark select:focus {
    border-color: #90cdf4;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.6);
}

/* Footer */
body.dark .footer {
    background-color: #2d3748;
    color: #cbd5e0;
    border-top-color: #4a5568;
}

/* Dropdowns */
body.dark .dropdown-menu {
    background-color: #2d3748;
    color: #f7fafc;
    border-color: #4a5568;
}
body.dark .dropdown-item {
    color: #f7fafc;
}
body.dark .dropdown-item:hover {
    background-color: #4a5568;
    color: #e2e8f0;
}

/* Modals */
body.dark .modal-content {
    background-color: #2d3748;
    color: #f7fafc;
    border-color: #4a5568;
}
body.dark .modal-header, 
body.dark .modal-footer {
    border-color: #4a5568;
}

/* Alerts */
body.dark .alert {
    background-color: #4a5568;
    color: #f7fafc;
    border-color: #4a5568;
}
body.dark .alert a {
    color: #90cdf4;
    text-decoration: underline;
}

/* Links */
body.dark a {
    color: #90cdf4; /* Soft blue, maintains the "link" feel */
    text-decoration: none;
    transition: color 0.3s ease;
}

body.dark a:hover {
    color: #63b3ed; /* Slightly brighter blue for hover effect */
}

/* Form and form group */
body.dark .form-group label {
    color: #cccccc; /* Softer label text */
}

body.dark .form-group input,
body.dark .form-group select,
body.dark .time-input input {
    background-color: #2a2a2a; /* Darker input fields */
    color: #ffffff; /* Light text inside inputs */
    border: 1px solid #444; /* Subtle border */
    border-radius: 4px;
}

body.dark .form-group input:focus,
body.dark .form-group select:focus,
body.dark .time-input input:focus {
    outline: none;
    border-color: #007bff; /* Highlight border */
}

body.dark .coordinates-section {
    background-color: #2d3748; /* Deep gray for background */
    border: 1px solid #4a5568; /* Subtle border color */
    border-radius: 8px; /* Keep it consistent with light theme */
    padding: 16px; /* Slightly increased padding for balance */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); /* Inner shadow for depth */
    transition: all 0.3s ease-in-out;
    color: #e2e8f0; /* Light gray for text */
}
