.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;
}

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

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

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

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

.icon:hover {
    color: #FF9900;
}

.status-indicator {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
}

.loading-spinner {
  border: 3.2px solid #f3f3f3; /* Light grey */
  border-top: 3.2px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.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 */
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 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,
body.dark #event-details #button-area {
    background-color: #1f2937;
    border-color: #374151;
    /* background-color: #2d3748; */
    color: #f7fafc;
    /* border: 1px solid #4a5568; */
}

body.dark .card:hover,
body.dark .class-card:hover,
body.dark .camera-form:hover,
body.dark #event-details #button-area:hover {
    background-color: #2d3748;
    color: #f7fafc;
}


/* 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 */
}

/* 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 {
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker overlay */
}

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 */
}
