/* Calendar Page Styles */

/* Calendar Header Controls */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.calendar-nav-btn {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 126, 95, 0.3);
}

.calendar-today-btn {
    background: linear-gradient(to right, #7bfe86ff, #7bfe86ff);
    border: none;
    color: rgb(0, 0, 0);
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-today-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(123, 254, 134, 0.3);
}

#calendar-month-title {
    margin: 0;
    font-size: 24px;
    color: #333;
    min-width: 200px;
    text-align: center;
}

/* Day Event Styles */
.day-event-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px;
}

.day-event {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    border-radius: 10px;
    padding: 20px;
    width: 350px;
    color: white;
    margin: 0;
}

.event h3 {
    margin-top: 0;
}

.event p {
    margin: 5px 0;
}

/* Table Styles */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.calendar-table thead tr {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
}

.calendar-table th {
    padding: 10px;
}

.calendar-table th:first-child {
    border-radius: 10px 0 0 10px;
}

.calendar-table th:last-child {
    border-radius: 0 10px 10px 0;
}

.calendar-table tbody tr {
    background: #fff7f0;
}

.calendar-table td {
    padding: 10px;
}








/* Monthly Calendar Table Styles */
.m-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.m-calendar-table thead tr {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
}

.m-calendar-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
}

.m-calendar-table tbody tr {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;

    height: 150px;
}

.m-calendar-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.m-calendar-table td {
    padding: 5px;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #f0f0f0;



    width: 14.28%; /* 100% / 7 days */
    position: relative;
}

.m-calendar-table td:last-child {
    border-right: none;
}

.m-calendar-table td:hover {
    background: #fff7f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Date number styling (top-left) */
.m-calendar-table td .date-number {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1;
}

/* Events container */
.m-calendar-table td .events-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 5px;
}

/* Event card styling */
.event-card {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.event-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.event-card .event-title {
    font-weight: 600;
    margin-bottom: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-card .event-time {
    font-size: 10px;
    opacity: 0.9;
    font-weight: 400;
}

/* Calendar event indicators */
.m-calendar-table td .event-indicator {
    width: 6px;
    height: 6px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    border-radius: 50%;
    margin: 2px auto;
}

/* Today's date highlighting */
.m-calendar-table td.today {
    background: linear-gradient(to right, rgba(255, 126, 95, 0.1), rgba(254, 180, 123, 0.1));
    border: 2px solid #ff7e5f;
}

.m-calendar-table td.today .date-number {
    color: #ff7e5f;
    font-weight: bold;
}

/* Previous/Next month dates */
.m-calendar-table td.other-month {
    background: #f8f8f8;
}

.m-calendar-table td.other-month .date-number {
    color: #ccc;
}

.m-calendar-table td.other-month:hover {
    background: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .calendar-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    #calendar-month-title {
        font-size: 20px;
        min-width: auto;
    }
    
    .calendar-today-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .line {
        display: block;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, #ff7e5f, #feb47b);
        margin: 30px 0;
    }
    
    .m-calendar-table td {
        min-height: 80px;
        padding: 3px;
    }
    
    .m-calendar-table td .date-number {
        font-size: 14px;
    }
    
    .event-card {
        font-size: 10px;
        padding: 3px 4px;
    }
    
    .event-card .event-title {
        font-size: 9px;
    }
    
    .event-card .event-time {
        font-size: 8px;
    }
    
    .day-event-container {
        flex-direction: column;
        align-items: center;
    }
    
    .day-event {
        width: 100%;
        max-width: 400px;
    }
    
    .calendar-table {
        font-size: 12px;
    }
    
    .calendar-table th,
    .calendar-table td {
        padding: 8px 4px;
    }
}
