
        /* Body Styling */
        body {
            background-color: #f8f9fa;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Container Styling */
        .container {
            margin-top: 20px;
            padding: 10px;
            flex: 1;
        }

        /* Heading Styling */
        h1 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            text-align: center;
        }

        /* Table Styling */
        .table th, .table td {
            padding: 3px 3px;
            font-size: 0.75rem;
            text-align: center;
            vertical-align: middle;
            white-space: nowrap;
        }

        .table th {
            background-color: #007bff;
            color: white;
            position: sticky;
            top: 0;
            z-index: 2;
        }

        /* Status Indicators */
        .status {
            width: 20px;
            height: 20px;
            border-radius: 20%;
            display: inline-block;
            cursor: pointer;
        }

        /* Status Colors */
        .available {
            background-color: #28a745; /* Green */
        }

        .reserved {
            background-color: #ffc107; /* Amber */
                        cursor: not-allowed;
        }

        .maintenance {
            background-color: #dc3545; /* Red */
                        cursor: not-allowed;
        }

        .teaching {
            background-color: #17a2b8; /* Teal */
                        cursor: not-allowed;
        }
        
/* Common Status Styling */
.status {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    position: relative; /* For potential icon overlays */
}

/* Available Status */
.status.available {
    background-color: green; /* Indicates availability */
    cursor: pointer; /* Shows pointer cursor on hover */
    text-decoration: none; /* Removes underline */
}

/* Reserved (League) Status */
.status.reserved-league {
    background-color: yellow; /* Indicates reserved for league play */
    cursor: not-allowed; /* Shows not-allowed cursor on hover */
}

/* Reserved (Lesson) Status */
.status.reserved-lesson {
    background-color: blue; /* Indicates reserved for lessons */
    cursor: not-allowed; /* Shows not-allowed cursor on hover */
}

/* Maintenance Status */
.status.maintenance {
    background-color: red; /* Indicates maintenance */
    cursor: not-allowed; /* Shows not-allowed cursor on hover */
}

/* Thicker Borders Between Court Groups */

/* Apply thicker right border to Court 5 and Court 8 */
th:nth-child(6), th:nth-child(9),
td:nth-child(6), td:nth-child(9) {
    border-right: 3px solid #000; /* Black thick border */
}

/* No thicker border after Court 12 */

/* Hover Effects */

/* Available Status Hover */
.status.available:hover {
    background-color: darkgreen;
}

/* Reserved (League) Status Hover */
.status.reserved-league:hover {
    background-color: #e6e600; /* Darker yellow */
}

/* Reserved (Lesson) Status Hover */
.status.reserved-lesson:hover {
    background-color: #0000cc; /* Darker blue */
}

/* Maintenance Status Hover */
.status.maintenance:hover {
    background-color: darkred;
}

/* Optional: Highlight Teaching Courts Rows */
/* Adds a light blue background to teaching courts for additional emphasis */
tbody tr .status.reserved-lesson {
    background-color: #cce5ff; /* Light blue */
}


@media (min-width: 768px) {
    #saveAssignments,
    #resetAssignments {
        width: auto;
    }
}


        /* Legend Styling */
        .legend {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-bottom: 5;
            flex-wrap: wrap;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.85rem;
        }

        .legend-color {
            width: 15px;
            height: 15px;
            border-radius: 20%;
            display: inline-block;
        }

        /* Footer Styling */
        .footer {
            background-color: #007bff;
            color: white;
            text-align: center;
            padding: 10px 0;
            font-size: 0.85rem;
        }

        .footer a {
            color: white;
            text-decoration: underline;
            margin: 0 5px;
        }

        /* Scroll to Top Button Styling */
        .scroll-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #007bff;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }

        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .table-responsive {
                overflow-x: auto;
            }
            .container {max-width: 800px;}
            .legend {flex-wrap: nowrap;
           
            
            }
            .table th, .table td {
                padding: 6px 4px;
                font-size: 0.65rem;
            }

            .legend {
                text-align: left;
                gap: 3px;
                 justify-items: center;

            }

            .legend-item {
                font-size: 0.75rem;
            }

            .footer {
                font-size: 0.75rem;
            }

            .scroll-to-top {
                width: 35px;
                height: 35px;
            }

            h1 {
                font-size: 1.3rem;
            }
        }




/* Common Styles */
body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.nav-item {
	color:#235041;
	font-weight:bold;
	}

.container {
    margin-top: 20px;
}

.card {
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd; /* Merged border for consistency */
}

.footer {
    background-color: #2a2a2a;
    color: white;
    text-align: center;
    padding: 5px 0;
}

.footer a {
    color: white;
    text-decoration: underline;
    margin: 0 10px;
}

.hidden {
    display: none;
}

.btn-submit {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s;
}

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

/* Specific Styles */

/* Index.html Specific Styles */
.content-wrapper {
    flex: 1;
}

/* Admin Lesson Setup & Court Reservation Specific Styles */
.lessons-list,
.reservations-list {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 15px;
}

.lesson-item,
.reservation-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.lesson-item:last-child,
.reservation-item:last-child {
    border-bottom: none;
}

.typeahead {
    position: relative;
}

.typeahead-results {
    position: absolute;
    z-index: 10;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
}

.typeahead-results div {
    padding: 8px 10px;
    cursor: pointer;
}

.typeahead-results div:hover {
    background-color: #f1f1f1;
}

#memberResults {
    border: none; /* Remove the border under the type-ahead */
}

/* Daily Schedule Specific Styles */
.card-header {
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd; /* Separate header visually from content */
    border-radius: 0; /* Remove additional rounding from header */
}

.view-all-btn {
    font-size: 0.8rem;
}

.court-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .court-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        background-color: #007bff;
        color: white;
        border: none;
    }

    .navbar-nav .dropdown-menu a {
        color: white;
    }

    .navbar-nav .dropdown-menu a:hover {
        background-color: #0056b3;
    }

    .dropdown-divider {
        border-top: 1px solid #0056b3;
    }

    .avatar-container img {
        display: none;
    }
}

.court {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    position: relative; /* Added for court_layout.html styles */
    padding-top: 75%; /* Aspect ratio 4:3 for layout */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.court.available {
    background-color: #d4edda;
    color: #155724;
}

.court.reserved {
    background-color: #fff3cd;
    color: #856404;
}

.court.maintenance {
    background-color: #f8d7da;
    color: #721c24;
}

.court.teaching {
    background: repeating-linear-gradient(
        45deg,
        #EEF5FF 0px,
        #EEF5FF 20px,
        #B4D4FF 20px,
        #B4D4FF 40px
    );
    color: #721c24;
}

.court::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #000;
    transform: translateX(-50%);
}

.court-name {
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 5px;
}

.status-badge {
    margin-top: 10px;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    padding: 0.3rem 0.8rem;
    color: white;
}

.status-badge.available { background-color: green; }
.status-badge.doubles { background-color: orange; }
.status-badge.teaching { background-color: purple; }
.status-badge.maintenance { background-color: yellow; color: black; }
.status-badge.league { background-color: blue; }
.status-badge.singles { background-color: olive; }
.status-badge.down { background-color: red; }

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.time-remaining {
    margin-top: 5px; /* Adjust spacing between status label and time */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #555;
    gap: 5px; /* Space between clock icon and text */
}

.time-remaining .icon {
    font-size: 1.2rem;
}

.avatar-container {
    position: absolute;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem;
    border-radius: 5px;
    width: 40%;
}

.avatar-container img {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 0.3rem;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.avatar.left-top { top: 5%; left: 5%; }
.avatar.right-top { top: 5%; right: 5%; }
.avatar.left-bottom { bottom: 5%; left: 5%; }
.avatar.right-bottom { bottom: 5%; right: 5%; }
.avatar.left-middle { bottom: 35%; left: 5%; }
.avatar.right-middle { bottom: 35%; right: 5%; }

.divider {
    border-top: 2px solid #ccc;
    margin: 30px 0;
}

.legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 20%;
}

/* Court Booking Specific Styles */
.card.booking {
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header.booking {
    font-size: 1.5rem;
    text-align: center;
}

/* Additional Specific Styles (if any) can be added below */
        .card-header {
            font-size: 1.2rem;
            font-weight: bold;
            background-color: #007bff;
            color: #fff;
            padding: 10px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #ddd; /* Separate header visually from content */
            border-radius: 0; /* Remove additional rounding from header */
        }
        .view-all-btn {
            font-size: 0.8rem;
        }
        .court-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin: 15px 0;
        }
        @media (max-width: 768px) {
            .court-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
                .court2 {
            background-color: #f8f9fa;
            border: 1px solid #ddd;
            border-radius: 10px;
            padding: 5px;
            text-align: center;
            font-size: 1rem;
            font-weight: bold;
        }
                .court2.available {
            background-color: #d4edda;
            color: #155724;
        }
        .court2.reserved {
            background-color: #fff3cd;
            color: #856404;
        }
        .court2.maintenance {
            background-color: #f8d7da;
            color: #721c24;
        }
        .court2.teaching {
            background-color: #A5DD9B;
            color: #721c24;
            background: repeating-linear-gradient(
    45deg,
    #EEF5FF 0px,
    #EEF5FF 20px,
    #B4D4FF 20px,
   #B4D4FF 40px
  );
        }
        .scroll-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #007bff;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }
        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        #nav{
    min-height: 91px; /* Adjust based on your header's actual height */
    background-color: #f8f9fa; /* Optional: matches your header's background */
    transition: all 0.3s ease-in-out; /* Smooth transition when content is loaded */
    #footer {
    min-height: 110px; /* Adjust based on your footer's actual height */
    background-color: #f8f9fa; /* Optional: matches your footer's background */
    transition: all 0.3s ease-in-out; /* Smooth transition when content is loaded */
}

/*Styles for daily schedule*/
        /* Body Styling */
        body {
            background-color: #f8f9fa;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Container Styling */
        .container {
            margin-top: 20px;
            padding: 10px;
            flex: 1;
        }

        /* Heading Styling */
        h1 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            text-align: center;
        }

        /* Table Styling */
        .table th, .table td {
            padding: 3px 3px;
            font-size: 0.75rem;
            text-align: center;
            vertical-align: middle;
            white-space: nowrap;
        }

        .table th {
            background-color: #007bff;
            color: white;
            position: sticky;
            top: 0;
            z-index: 2;
        }

        /* Status Indicators */
        .status {
            width: 20px;
            height: 20px;
            border-radius: 20%;
            display: inline-block;
            cursor: pointer;
        }

        /* Status Colors */
        .available {
            background-color: #28a745; /* Green */
        }

        .reserved {
            background-color: #ffc107; /* Amber */
            cursor: not-allowed;
        }

        .maintenance {
            background-color: #dc3545; /* Red */
                        cursor: not-allowed;
        }

        .teaching {
            background-color: #17a2b8; /* Teal */
                        cursor: not-allowed;
        }

        /* Legend Styling */
        .legend {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-bottom: 5;
            flex-wrap: wrap;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.85rem;
        }

        .legend-color {
            width: 15px;
            height: 15px;
            border-radius: 20%;
            display: inline-block;
        }

        /* Footer Styling */
        .footer {
            background-color: #007bff;
            color: white;
            text-align: center;
            padding: 10px 0;
            font-size: 0.85rem;
        }

        .footer a {
            color: white;
            text-decoration: underline;
            margin: 0 5px;
        }

        /* Scroll to Top Button Styling */
        .scroll-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #007bff;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }

        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .table-responsive {
                overflow-x: auto;
            }
            .container {max-width: 800px;}
            .legend {flex-wrap: nowrap;
           
            
            }
            .table th, .table td {
                padding: 6px 4px;
                font-size: 0.65rem;
            }

            .legend {
                text-align: left;
                gap: 3px;
                 justify-items: center;

            }

            .legend-item {
                font-size: 0.75rem;
            }

            .footer {
                font-size: 0.75rem;
            }

            .scroll-to-top {
                width: 35px;
                height: 35px;
            }

            h1 {
                font-size: 1.3rem;
            }
        }




/* End of Styles */