/* Global Background for the Whole Page */
html, body {
    background: var(--background-gradient); /* No fallback */
    color: var(--text-color); /* No fallback */
    font-family: Arial, sans-serif; /* Optional: Change font */
    margin: 0; /* Remove default margin */
}

/* Calendar Container Background */
.calendar {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff; /* White background for the calendar */
    border-radius: 10px; /* Optional rounded corners */
}

/* Calendar Header Background */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background-color: #ffffff; /* White background for the header */
    padding: 10px;
    border-radius: 5px; /* Rounded corners for the header */
    color: black; /* No fallback */
}

/* Month Label Styling */
.calendar-month {
    font-size: 1.25rem;
    font-weight: bold;
    color: black;
}

/* Calendar Body with Background */
.calendar-body td {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    background-color: #ffffff; /* White background for each cell */
    border-radius: 5px; /* Optional rounded corners */
}

/* Available Date Cell Styling */
.calendar-body td.available {
    background-color: #e9f5ff; /* Light blue background for available dates */
}

/* Disabled Date Cell Styling */
.calendar-body td.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f8f9fa; /* Light grey background for disabled dates */
}

/* Hover Effect on Available Dates */
.calendar-body td:hover:not(.disabled) {
    background-color: #d1e7ff; /* Slightly darker background on hover */
}

h1,h2,h3,h4,h5,h6{
    color: var(--heading-color); /* No fallback */
}

p,span,i{
    color: var(--text-color); /* No fallback */
}
/* Calendar Body with Background */
/* List Group Background */
.list-group {
    background-color: var(--background-gradient); /* No fallback */
    border-radius: 5px; /* Rounded corners */
    border: 2px solid var(--button-color);
    cursor: pointer;
}

/* List Group Item Background */
.list-group-item {
    background: var(--background-gradient); /* No fallback */
    border: 1px solid var(--list-border-color); /* Use variable for list border color */
    padding: 10px;
    border-radius: 5px; /* Rounded corners for the items */
    border: 1px solid var(--button-color);
}

/* Hover Effect for List Group Items */
.list-group-item:hover {
  background: var(--background-gradient); /* No fallback */
}

/* Other Element Background (like container, etc.) */
.container {
    padding: 20px; /* Optional padding */
    border-radius: 10px; /* Optional rounded corners */
}

/* Dropdown Menu Background */
.dropdown-menu {
    background-color: var(--dropdown-bg-color); /* Use dropdown background color variable */
    border-radius: 5px; /* Rounded corners for dropdown */
}

/* Card Header */
.card-header {
    background-color: var(--background-gradient); /* No fallback */
}

/* Additional Styles for Buttons and Inputs */
button, input, select, textarea {
    background-color: var(--button-color); /* No fallback */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Add padding */
    border: 1px solid var(--input-border-color); /* Use variable for border color */
    color: var(--text-color); /* No fallback */
}

button {
    border-radius: 0.375rem; /* Matches Bootstrap's .btn */
    padding: 0.375rem 0.75rem; /* Matches Bootstrap's default padding */
    font-size: 1rem; /* Matches Bootstrap's button font size */
    font-weight: 400; /* Bootstrap default weight */
    border: 1px solid var(--text-color); /* Your original color */
    background-color: var(--button-color); /* No fallback */
    color: #fff; /* Keeps text readable */
    transition: all 0.2s ease-in-out; /* Smooth hover effect */
}

button:hover {
    background-color: var(--text-color); /* Keep same color on hover */
    opacity: 0.85; /* Slight dimming effect like Bootstrap */
}

button:hover {
    background-color: var(--button-color); /* No fallback */
}

.inherit {
    box-sizing: inherit;
}

/* Ensure the calendar is responsive */
.calendar {
    max-width: 100%; /* Allow it to shrink on smaller screens */
    overflow-x: auto; /* Enable horizontal scrolling if needed */
    padding: 10px;
}

/* Responsive table adjustments */
.calendar-body table {
    width: 100%;
    min-width: 300px; /* Prevent too much shrinking */
    table-layout: fixed; /* Prevent column misalignment */
    border-collapse: collapse;
}

/* Ensure table headers and cells fit */
.calendar-body th, .calendar-body td {
    font-size: 14px; /* Reduce font size */
    padding: 5px; /* Reduce padding */
    text-align: center;
}

/* Make table scrollable on small screens */
@media (max-width: 576px) {
    .calendar-body table {
        display: block;
        overflow-x: auto; /* Allow scrolling */
        white-space: nowrap;
    }

    .calendar-header {
        flex-direction: column; /* Stack buttons and month label */
        align-items: center;
        text-align: center;
    }

    .calendar-header button {
        width: 40px; /* Reduce button width */
        padding: 5px;
    }

    .calendar-month {
        font-size: 1rem; /* Adjust font size */
        color: black;
    }

    /* Adjust button and slots for small screens */
    .availableSlots .btn {
        font-size: 12px;
        padding: 8px;
    }
}
