/* Bootstrap 5.3 Dark Theme Support */
[data-bs-theme="dark"] body {
    background-color: #181a1b;
    color: #e9ecef;
}

[data-bs-theme="dark"] .calendar-container {
    background-color: #23272b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .calendar-header h3,
[data-bs-theme="dark"] .calendar-header h3 small {
    color: #e9ecef;
}

[data-bs-theme="dark"] .calendar-grid {
    border-color: #343a40;
    background-color: #23272b;
}

[data-bs-theme="dark"] .calendar-day-header {
    background-color: #393d41;
    border-bottom: 1px solid #343a40;
    border-right: 1px solid #343a40;
    color: #e9ecef;
}

[data-bs-theme="dark"] .calendar-day-header.saturday {
    color: #ff6b6b;
}

[data-bs-theme="dark"] .calendar-cell {
    background-color: #23272b;
    border-bottom: 1px solid #343a40;
    border-right: 1px solid #343a40;
    color: #e9ecef;
}

[data-bs-theme="dark"] .calendar-cell.inactive {
    background-color: #181a1b;
    color: #6c757d;
}

[data-bs-theme="dark"] .calendar-cell.today {
    background-color: #343a40;
}

[data-bs-theme="dark"] .calendar-date {
    color: #e9ecef;
}

[data-bs-theme="dark"] .calendar-date-en {
    color: #66b0ff;
}

[data-bs-theme="dark"] .calendar-cell.inactive .calendar-date,
[data-bs-theme="dark"] .calendar-cell.inactive .calendar-date-en {
    color: #6c757d;
}

[data-bs-theme="dark"] .calendar-cell.holiday .calendar-date,
[data-bs-theme="dark"] .calendar-cell.holiday .calendar-date-en {
    color: #ff6b6b;
}

[data-bs-theme="dark"] .event {
    background-color: #233c2b;
    border-left-color: #51cf66;
    color: #e9ecef;
}

[data-bs-theme="dark"] .event-title {
    color: #51cf66;
}

[data-bs-theme="dark"] .event-time {
    color: #adb5bd;
}

[data-bs-theme="dark"] .event.event-default {
    background-color: #343a40;
    border-left-color: #adb5bd;
}

[data-bs-theme="dark"] .event.event-default .event-title {
    color: #adb5bd;
}

[data-bs-theme="dark"] .event.event-meeting {
    background-color: #1c2331;
    border-left-color: #339af0;
}

[data-bs-theme="dark"] .event.event-meeting .event-title {
    color: #339af0;
}

[data-bs-theme="dark"] .event.event-deadline {
    background-color: #3d1c23;
    border-left-color: #fa5252;
}

[data-bs-theme="dark"] .event.event-deadline .event-title {
    color: #fa5252;
}

[data-bs-theme="dark"] .event.event-holiday {
    background-color: #3d3621;
    border-left-color: #ffd43b;
}

[data-bs-theme="dark"] .event.event-holiday .event-title {
    color: #ffd43b;
}

[data-bs-theme="dark"] .filter-form {
    background-color: #23272b;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .cal-month {
    background: #23272b;
}

[data-bs-theme="dark"] .cal-month h3 {
    color: #e9ecef;
}

[data-bs-theme="dark"] .cal-month .en-month {
    color: #66b0ff;
}

[data-bs-theme="dark"] small.week-number {
    color: #e9ecef;
}

[data-bs-theme="dark"] a.day-view {
    color: #66b0ff;
}

[data-bs-theme="dark"] .floating-settings-icon {
    position: fixed;
    bottom: 2%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 1050;
    background-color: #393d41;
    border: 1px solid #393d41;
    color: #181a1b;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    /* Smooth transition on hover */
}

[data-bs-theme="dark"] .floating-settings-icon:hover {
    background-color: #000;
}

[data-bs-theme="dark"] .floating-settings-icon i{
    color: #fff;
}
[data-bs-theme="dark"] .floating-settings-icon:hover i{
    color: #fff;
}

[data-bs-theme="dark"] .btn-success{
    background: #181a1b;
    border-color: #233c2b;
}
[data-bs-theme="dark"] .btn-success:hover{
    background: #000;
    border-color: #233c2b;
}

[data-bs-theme="dark"] .btn-danger{
    background: #181a1b;
    border-color: #233c2b;
}
[data-bs-theme="dark"] .btn-danger:hover{
    background: #000;
    border-color: #233c2b;
}


body {
    background-color: #f8f9fa;
    min-width: 375px;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    pointer-events: auto;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

a.floating-settings-icon {
    text-decoration: none;
    color: inherit;
}

.floating-settings-icon {
    position: fixed;
    bottom: 2%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 1050;
    background-color: #e9ecef;
    border: 1px solid #e9ecef;
    color: #181a1b;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    /* Smooth transition on hover */
}

.floating-settings-icon:hover {
    background-color: #fff;
}

.calendar-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-header h3 {
    margin-bottom: 0;
    color: #343a40;
    font-weight: 600;
}

.calendar-header h3 small {
    margin-top: 10px;
    margin-bottom: 0;
    color: #343a40;
    font-weight: 500;
    font-size: 75%;
    display: block;
}

.calendar-nav-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    /* To handle border-radius correctly */
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    background-color: #e9ecef;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    color: #495057;
}

.calendar-day-header.small {
    display: none;
}

@media (max-width: 767.98px) {
    .calendar-day-header.small {
        display: block;
    }

    .calendar-day-header.large {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .event {
        display: none;
    }
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-cell {
    min-height: 75px;
    padding: 5px;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    position: relative;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-cell.inactive {
    background-color: #f8f9fa;
    color: #adb5bd;
}

.calendar-cell.today {
    background-color: #e9ecef;
    /* Light blue for today */
    /* border: 1px solid #0d6efd; */
    /* box-shadow: inset 0 0 0 1px #0d6efd; */
}

.calendar-day-header.saturday {
    color: #f44;
}

.calendar-cell.holiday .calendar-date,
.calendar-cell.holiday .calendar-date-en {
    color: #f44;
}

small.week-number {
    padding-left: 2px;
    font-size: 50%;
    color: #343a40;
}

.calendar-date small.week-number {
    font-size: 60%;
}

.calendar-cell:nth-child(7n) {
    /* No right border for Saturday cells */
    border-right: none;
}

.calendar-cell:nth-last-child(-n + 7) {
    /* No bottom border for last row cells */
    border-bottom: none;
}

.calendar-date {
    font-weight: bold;
    font-size: 100%;
    display: block;
    margin-bottom: 5px;
    color: #343a40;
}

.calendar-date-en {
    font-weight: bold;
    font-size: 90%;
    display: block;
    margin-bottom: 2px;
    color: #0058b0;
    text-align: right
}

.calendar-cell.inactive .calendar-date,
.calendar-cell.inactive .calendar-date-en {
    color: #adb5bd;
}

/* Event Styling */
.event {
    background-color: #d1e7dd;
    /* Light green for success */
    border-left: 4px solid #198754;
    /* Green border */
    padding: 4px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 0.85em;
    line-height: 1.3;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    /* white-space: nowrap; */
    white-space: normal;
}

.event-title {
    font-weight: 500;
    color: #198754;
}

.event-time {
    color: #495057;
    font-size: 0.8em;
}

.event.event-default {
    background-color: #f3eded;
    border-left: 4px solid #6d6d6d;
}

.event.event-default .event-title {
    color: #7f7f7f;
}

.event.event-meeting {
    background-color: #cfe2ff;
    border-left-color: #0d6efd;
}

.event.event-meeting .event-title {
    color: #0d6efd;
}

.event.event-deadline {
    background-color: #ffe0e6;
    border-left-color: #dc3545;
}

.event.event-deadline .event-title {
    color: #dc3545;
}

.event.event-holiday {
    background-color: #fff3cd;
    /* Light yellow */
    border-left-color: #ffc107;
    /* Yellow */
}

.event.event-holiday .event-title {
    color: #ffc107;
}

.filter-form {
    background-color: #f0f2f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.holidays-list {
    display: none;
}

@media print {
    .filter-form {
        display: none !important;
    }

    .holidays-list {
        display: block;
    }

    .calendar-nav-buttons {
        display: none !important;
    }

    .event {
        display: none !important;
    }

    body::after {
        content: "© Techart Trekkies Pvt. Ltd. | www.techarttrekkies.com";
        display: block;
        text-align: center;
        color: #adb5bd;
        font-size: 0.95em;
        margin-top: 40px;
        margin-bottom: 10px;
        letter-spacing: 0.02em;
    }

    .year-cal-header {
        display: none;
    }

    .month-box {
        page-break-after: always;
    }

    .year-view-month-year {
        display: inline-block !important;
    }
}

.year-view-month-year {
    display: none;
}

a.day-view {
    text-decoration: none;
}

.cal-month {
    background: #e8e8e8;
    border-radius: 8px;
    padding: 10px;
}

.cal-month h3 {
    margin: 0;
    color: #343a40;
    font-weight: 600;
    font-size: 17px;
}

.cal-month .calendar-header {
    margin-bottom: 10px;
    padding: 0 5px;
}

.cal-month .en-month {
    color: #0058b0;
    font-size: 13px;
    font-weight: bold;
    ;
}