﻿/* Calendar.razor.css */


.calendar td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    height: 80px; /* Set a fixed height for each day box */
    position: relative; /* Added position property for absolute positioning */
}
.calendar {
    font-family: Arial, sans-serif;
}

    .calendar .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background-color: #f0f0f0;
    }

.calendar table {
    width: 100%;
    border-collapse: collapse;
}

.calendar th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    height: 80px; /* Set a fixed height for each day box */
}

.empty {
    background-color: #f5f5f5;
}

div[onclick] {
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    &:hover

{
    background-color: #e0e0e0;
}

}


.day-cell {
    width: 80px; /* Adjust the width as needed */
    height: 80px; /* Adjust the height as needed */
    border: 1px solid #ddd; /* Add border for better visualization */
    text-align: center; /* Center the content horizontally */
    vertical-align: middle; /* Center the content vertically */
}

.day-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden; /* Hide overflow beyond the set height */
    position: relative;
}

.day-number {
    font-weight: bold;
}

.appointments {
    display: flex;
    flex-direction: column;
    max-height: 60%; /* Set a maximum height for appointments container */
    overflow: hidden; /* Hide overflow beyond the set height */
}

.appointment {
    background-color: #c947ea;
    color: white;
    padding: 5px;
    margin: 2px;
    border-radius: 3px;
    font-size: x-small;
    cursor: pointer;
}

.more-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-top: 5px;
    cursor: pointer;
    border-radius: 3px;
    font-size: x-small;
}

    .more-button:hover {
        background-color: #0056b3;
    }

.disabled {
    color: #ccc; /* Adjust the color to visually indicate disabled dates */
    pointer-events: none;
}
.month-calendar .week th{
    height: 35px;
}
.month-calendar .appointments{
    max-height: 100%;
}
    .month-calendar .appointments .appointment {
        font-size: 8px;
        text-align: left;
        height: auto;
    }
    .month-calendar .day-cell{
        height: 130px;
    }
.month-calendar .appointments a {
    text-align: left;
    font-size: 10px;
    color: #0d6efd;
}

.current-day {
 background-color:#ead366
}