/* Existing styles */

/* Schedule container styling */
#Schedule {
    margin-top: 20px;
    max-width: 80%; /* Adjust the width as needed, e.g., 80% of the page */
    margin: 0 auto; /* Center the element horizontally */
    border: 2px solid #ff8c42; /* Optional: Add a border to match the theme */
    border-radius: 10px; /* Optional: Rounded corners */
    padding: 10px; /* Optional: Add inner spacing */
    background-color: #ffe5b4; /* Optional: Light orange background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Styling for the H1 Header */
h1 {
    font-family: 'Georgia', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
    background: linear-gradient(90deg, #ff8c42, #ff4500); /* Gradient background */
    padding: 20px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    margin: 20px auto;
    width: 80%;
}

/* Panel for buttons */
#panel {
    width: 75%; /* Matches scheduler width */
    margin: 20px auto 0;
    background-color: #eac7ac;
    padding: 10px;
    gap: 20px;
    border-radius: 5px;
    display: flex;
    justify-content: flex-end; /* Align items to the right */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Button styling */
#panel button {
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

/* Logout button styling */
#logout {
    background-color: #ff4500;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
#logout:hover {
    background-color: #d63c00;
}

/* Custom popup overlay */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Schedule header color */
.e-schedule .e-schedule-toolbar {
    background-color: #ff8c42;
    color: #fff;
}

/* Cell and appointment styling */
.e-schedule .e-work-cells {
    background-color: #ffd59b;
}
.e-schedule .e-selected-cell {
    background-color: #ffb347 !important;
}
.e-schedule .e-current-time-indicator {
    background-color: #ff4500;
}
.e-schedule .e-appointment {
    background-color: #ffa07a;
    color: #000;
}

/* Responsive design for small screens (max-width 768px) */
@media (max-width: 768px) {
    /* Header adjustments */
    h1 {
        font-size: 2rem; /* Smaller font for small screens */
        padding: 15px 5px; /* Adjust padding */
        width: 90%; /* Make the header slightly wider */
    }

    /* Scheduler container */
    #Schedule {
        max-width: 95%; /* Ensure the scheduler takes full width */
        margin: 1px auto; /* Adjust margins for mobile */
        padding: 1px; /* Less padding */
    }

    /* Panel and buttons */
    #panel {
        width: 100%; /* Ensure panel takes full width on mobile */
        justify-content: center; /* Center buttons */
        gap: 10px; /* Less gap between buttons */
    }
    #panel button {
        width: 100%; /* Make buttons full width */
        padding: 12px; /* Increase padding for touch targets */
        font-size: 16px; /* Larger font for easier reading */
        margin: 5px 0; /* Add margin between buttons */
    }

    /* Logout button */
    #logout {
        width: 100%; /* Make logout button full width */
        padding: 12px; /* Adjust padding */
    }

    /* Ensure that the appointments fit well on mobile screens */
    .e-schedule .e-appointment {
        font-size: 12px; /* Smaller text for appointments */
    }

    /* Optional: Adjust some layout styles */
    .e-schedule {
        font-size: 14px; /* Slightly smaller font for mobile */
    }

    /* Adjust toolbar buttons in mobile view */
    .e-schedule .e-schedule-toolbar .e-toolbar-item {
        font-size: 14px; /* Reduce font size */
    }
}
