/* Custom Date Range Picker CSS Develop By Tunjing ABS Software Last Update 20/03/2025 */

#calendarContainer {
    border: 1px solid #ccc;
    width: 600px; /* Adjusted width to fit two calendars side by side */
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    position: absolute; /* Ensure it is positioned relative to the input field */
    z-index: 1000;
    border-radius: 8px;
    display: none; /* Ensure it doesn't block other elements when hidden */
    overflow: hidden; /* Prevent content from overflowing outside the container */
}

#calendarContainer.visible {
    display: block; /* Show the calendar when the class is added */
}

#calendarHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #f0f0f0;
    font-weight: bold;
    font-size: 14px; /* Reduced font size */
    border-radius: 5px;
}

#calendarHeader button {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px; /* Smaller button text */
    transition: background 0.3s ease;
}

#calendarHeader button:hover {
    background: #0056b3; /* Darker blue on hover */
}

#currentMonth {
    font-size: 14px; /* Adjusted font size for the month display */
    color: #333;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-weight: bold;
    padding: 5px 0;
    text-align: center;
    border-top: solid #c5c5c5 1px;
    border-bottom: solid #c5c5c5 1px;
    /* background: #eee; */
    font-size: 12px; /* Smaller font for weekdays */
    color: #555;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columns for days of the week */
    gap: 5px;
    padding-top: 5px;
}

.day {
    text-align: center;
    padding: 8px; /* Reduced padding for a more compact look */
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
    font-size: 12px; /* Smaller font size for days */
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}

.weekend-sunday-text
{
    color: red;
}

.day:hover {
    background: #ddd;
}

.selected {
    background: #007bff;
    color: white;
}

.in-range {
    background: #b3d7ff; /* Light blue background for range */
    color: #333; /* Text color */
    border-radius: 5px; /* Slightly rounded corners for a modern look */
    width: 100%; /* Make it responsive to the grid cell */
    height: 100%; /* Match the height of the grid cell */
    max-width: 30px; /* Limit the maximum size */
    max-height: 30px; /* Limit the maximum size */
    line-height: 30px; /* Centers the text vertically */
    text-align: center; /* Centers the text horizontally */
    margin: auto; /* Centers the element within the grid cell */
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    box-sizing: border-box; /* Ensure padding and borders don't affect size */
}

.empty {
    visibility: hidden;
}

.start-date,
.end-date {
    background: #007bff !important;
    color: white !important;
    font-weight: bold;
    /* border-radius: 50%; Ensures the shape is circular */
    width: 100%; /* Make it responsive to the grid cell */
    height: 100%; /* Match the height of the grid cell */
    max-width: 30px; /* Limit the maximum size */
    max-height: 30px; /* Limit the maximum size */
    line-height: 30px; /* Centers the text vertically */
    text-align: center; /* Centers the text horizontally */
    margin: auto; /* Centers the circle within the grid cell */
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    box-sizing: border-box; /* Ensure padding and borders don't affect size */
}

.start-date{
    border-radius: 35% 0 0 35%;
}
.end-date{
    border-radius: 0 35% 35% 0;
}


.day.disabled {
    color: #ccc;
    pointer-events: none;
    cursor: not-allowed;
}
.day.today {
    color: #007bff;
    font-weight: bold;
}

#calendars {
    display: flex; /* Use flexbox to align calendars side by side */
    gap: 20px; /* Add spacing between the two calendars */
    justify-content: space-between; /* Distribute calendars evenly */
    overflow: hidden; /* Prevent calendars from overflowing */
}

.calendar-container {
    flex: 1; /* Allow each calendar to take equal space */
    max-width: 280px; /* Limit the maximum width of each calendar */
    overflow: hidden; /* Ensure content stays within the container */
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space out the arrows and the month name */
    padding: 5px 10px;
    /* background: #f0f0f0; */
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px;
}

.calendar-header button {
    background: var(--primary-button-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.calendar-header button:hover {
    background: var(--primary-button-hover-color);
}

.calendar-header span {
    flex: 1; /* Allow the month name to take up remaining space */
    text-align: center; /* Center the month name */
    font-size: 14px;
    color: #333;
}

[data-daterange] {
    cursor: pointer; /* Change cursor to pointer on hover */
}

.hover-in-range {
    background-color: rgba(0, 123, 255, 0.2); /* Light blue */
    border-radius: 50%;
}


