/* style.css */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    width: 60%;
	
}
.calendar-container {
    max-width: 1200px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.calendar-header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 25px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.calendar-header .title-nav-group {
    display: flex;
    align-items: center;
    gap: 20px;
}
.calendar-header h2 {
    font-size: 1.75rem;
    margin: 0;
}
.calendar-header button.nav-btn {
    background-color: transparent;
    border: none;
    color: #ecf0f1;
    font-size: 1.8rem;
    transition: color 0.3s ease;
    cursor: pointer;
}
.calendar-header button.nav-btn:hover {
    color: #3498db;
}
#adminAuthBtn {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
#adminAuthBtn.logout-btn {
    background-color: #e74c3c;
}
#adminAuthBtn:hover {
    opacity: 0.9;
}
.week-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background-color: #e0e0e0;
    border-bottom: 1px solid #bdc3c7;
}
.week-days-grid > div {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #34495e;
    font-size: 0.9rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background-color: #bdc3c7;
}
.day-cell {
    background-color: #ffffff;
    min-height: 180px;
    padding: 10px;
    position: relative;
    transition: background-color 0.3s ease;
    overflow-y: auto;
}
.day-cell:hover {
    background-color: #f8f9fa;
}
.day-cell .day-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}
.day-cell.today .day-number {
    color: #e74c3c;
    font-weight: 700;
}
.event {
    font-size: 0.8rem;
    padding: 5px 8px;
    margin-top: 6px;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event:hover {
    opacity: 0.85;
}
.event-blue { background-color: #3498db; }
.event-green { background-color: #2ecc71; }
.event-red { background-color: #e74c3c; }
.event-yellow { background-color: #f1c40f; color: #333; }
.event-purple { background-color: #9b59b6; }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}
.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 25px 30px;
    border: none;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-content.event-modal-content {
    max-width: 550px;
}
.close-button {
    color: #7f8c8d;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 0.8;
}
.close-button:hover,
.close-button:focus {
    color: #2c3e50;
    text-decoration: none;
    cursor: pointer;
}
.modal-event-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.modal-event-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.add-event-button-container {
    text-align: center;
    padding: 20px 0;
}
.add-event-button {
    background-color: #2c3e50;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.add-event-button:hover {
    background-color: #34495e;
}
.admin-controls button {
     font-size: 0.75rem;
     padding: 4px 8px;
     margin-top: 5px;
}
.form-element label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #34495e;
}
.form-element input[type="text"],
.form-element input[type="password"],
.form-element input[type="time"],
.form-element input[type="date"],
.form-element textarea,
.form-element select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 0.95rem;
}
.form-element textarea {
    min-height: 80px;
    resize: vertical;
}
.form-actions button {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.form-actions .save-button {
    background-color: #27ae60;
    color: white;
    border: none;
}
.form-actions .save-button:hover {
    background-color: #229954;
}
.form-actions .cancel-button {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    margin-left: 10px;
}
.form-actions .cancel-button:hover {
    background-color: #bdbdbd;
}
.custom-alert {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e74c3c;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2000;
    font-size: 1rem;
}
.custom-alert.success {
    background-color: #2ecc71;
}
.custom-confirm-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}
.custom-confirm-content {
    background-color: #fff;
    margin: 20% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.custom-confirm-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #333;
}
.custom-confirm-content button {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 10px;
    min-width: 100px;
}
.confirm-yes { background-color: #e74c3c; color: white; }
.confirm-no { background-color: #bdc3c7; color: #333; }
