/* main {
} */

body {
    background-color: #f5f7fa;
}

.content {
    max-width: 1300px;
}

/* Header Styles */
/* header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nav-link {
    color: #555;
    transition: color 0.3s;
}
.nav-link:hover {
    color: #007bff;
}
 */

/* Class Cards */
.class-card {
    position: relative;
    background-image: linear-gradient(to right, rgb(239 246 255), rgb(249 250 251));
    /* background-color: #fff; */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.class-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.highlighted-card {
    border: 2px solid #007bff; /* Blue border */
    background-color: rgba(0, 123, 255, 0.1); /* Light blue background */
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.35); /* Enhanced shadow */
}

.highlighted-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.5);
    border: 2px solid #0056b3; /* Darker blue border on hover */
    background-color: rgba(0, 123, 255, 0.2); /* Lighter blue background on hover */
}


/* Tooltip for Info Icon */

/* .info-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 4.1px;
    right: 4.1px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 17.5px;
}

.info-icon-container:hover {
    background-color: #E0E0E0; 
} */

.info-icon {
    font-size: 1.2rem;
    color: #666;
}

/* THIS BLOCK WORKS FOR ICON POSITION SEQUENTIAL TO THE CARD TITLE. */
.tooltip {
    position: absolute;
    bottom: 245px;
    /* left: 0%; */
    transform: translateX(0px);
    background-color: #555;
    color: #fff;
    text-align: left;
    padding: 5px;
    border-radius: 5px;
    white-space: normal;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s;
    width: 300px;
    max-width: 500px;
    max-height: 130px; 
    overflow-y: auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);    
}

/* THIS BLOCK WORKS FOR ICON POSITION AT THE TOP RIGHT CORNER. */
/* .tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-5%);
    background-color: #555;
    color: #fff;
    text-align: left;
    padding: 5px;
    border-radius: 5px;
    white-space: normal;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s;
    width: 300px;
    max-width: 500px;
    max-height: 130px; 
    overflow-y: auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);    
} */
/* .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
} */

/* Styling for the delete icon */
.delete-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.0rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.delete-icon:hover {
    color: #ff4d4f; /* Red color on hover */
}

/* Modal for Create/Update Class */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    /* z-index: 50; */
    /* height: 400px;     */
}

.modal-content {
    background-color: white;
    /* padding: 20px; */
    border-radius: 10px;
    width: 100%;
    max-width: 1275px;
    max-height: 100%;
    overflow-y: scroll;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.delete-modal-content {
    background-color: white;
    /* padding: 20px; */
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.camera-form {
    max-width: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.close-modal {
    cursor: pointer;
    font-size: 1.5rem;
    color: #555;
}

/* Camera Grid */
#cameraGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-y: scroll;
    height: 425px;    
    /* height: 100%;     */
}

.camera-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    width: 120px;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.camera-card:hover {
    background-color: #f4f7f9; /* Light grayish background on hover for unselected card */
    border-color: #b0c4d6; /* Subtle light blue-gray border on hover */
}

.camera-card.selected {
    border-color: #0077ff;
    background-color: #f0f8ff; /* Light blue background for selected */
}

.camera-card.selected:hover {
    background-color: #e0f3ff; /* Slightly deeper blue for hover on selected card */
    border-color: #005bb5; /* Darker blue border for hover on selected card */
}

.camera-card h4 {
    margin: 10px 0 0 0;
    font-size: 16px;
}

.camera-card img {
    width: 100%;
    border-radius: 4px;
}


/* Check/Uncheck All checkbox */
.check-all-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.check-all-container input[type='checkbox'] {
    margin-right: 10px;
    transform: scale(1.2);
}

#checkAllCameras {
    margin-right: 10px;
}

/*for Fade In Animation for profile card */
.profile-card {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DARK THEME */

body.dark .modal-content {
    background-color: #1e1e1e; /* Dark background for modal */
    color: #e0e0e0; /* Light text color for readability */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8); /* Stronger shadow for better contrast */
}

body.dark .modal-header h2 {
    color: #ffffff; /* Bright text for modal header title */
}

body.dark .camera-card {
    border: 2px solid #444; /* Subtle border for unselected cards */
    background-color: #2a2a2a; /* Dark background for the card */
    color: #ffffff; /* Light text color */
    transition: background-color 0.3s, border-color 0.3s; /* Smooth transition */
}

body.dark .camera-card:hover {
    background-color: #3e4a57; /* Slightly lighter dark grayish-blue for hover */
    border-color: #6b7680; /* Subtle grayish-blue border for hover */
}

body.dark .camera-card.selected {
    background-color: #4a5b63; /* Soft blue-gray background for selected */
    color: #ffffff; /* Keep text color light */
    border-color: #6b7680; /* Soft grayish-blue border for selected state */
}

body.dark .camera-card.selected:hover {
    background-color: #5a6e74; /* Slightly lighter shade for selected card on hover */
    border-color: #5a6e74; /* Matching border color on hover */
}

body.dark .close-modal {
    color: #e0e0e0; /* Light close button color */
    transition: color 0.3s;
}

body.dark .close-modal:hover {
    color: #ff4d4f; /* Red color on hover */
}

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 .day-btn {
    background-color: #333; /* Dark background for buttons */
    color: #ffffff; /* Light text */
    border: 1px solid #444; /* Subtle border */
    transition: background-color 0.3s;
}

body.dark .day-btn:hover {
    background-color: #444; /* Slightly lighter on hover */
}

body.dark .day-btn.selected {
    background-color: #007bff; /* Highlight for selected buttons */
    color: #ffffff;
}

body.dark .submit-btn {
    background-color: #007bff; /* Primary action button */
    color: #ffffff; /* Text color */
    border: none;
    transition: background-color 0.3s;
}

body.dark .submit-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

body.dark .check-all-container {
    color: #ffffff;
    transition: color 0.3s;
}

body.dark .check-all-container input[type='checkbox'] {
    background-color: #333; /* Dark background for buttons */
    color: #ffffff; /* Light text */
    border: 1px solid #444; /* Subtle border */
    transition: background-color 0.3s;
}

/* Update existing sidebar styles */
.sidebar {
    position: fixed;
    /* left: -500px; Hidden by default */
    right: -550px; /* Hidden by default */
    width: 550px;
    height: 100%;
    background-color: #f0f0f0;
    color: #333;
    /* padding: 20px; */
    padding-bottom: 80px; /* Note to myself: I'm sorry, I could not fix the issue with the 'Schedule' button being hidden at the bottom of the side bar in any other way */
    /* transition: left 0.3s ease; */
    transition: right 0.3s ease;
    /* Scrollable content */
    overflow-y: scroll;
    /* max-height: 100%; */
    /* --- */
}

.sidebar.active {
    /* left: 0; */
    right: 0; 
}

/* Add margin to main content when sidebar is active */
.content {
    /* transition: margin-left 0.5s ease; */
    transition: margin-right 0.5s ease;
}

.sidebar.active + .content {
    /* margin-left: 550px; */
    margin-right: 550px;
}

#toggleSidebar {
    position: absolute;
    top: 20px;
    left: 20px;
}

/* Override default styles for form sections from form-2.css, specfically for side bar form */
.form-section {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding-top: 0;
    margin-top: 0;
    /* padding-left: 10px; */
    /* padding-right: 10px; */
}

.form-group {
    padding-bottom: 10px;
}

/* .form-section h3 {
    padding-top: 20px;
} */
