/*Header List*/
.header-list-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.header-list-wrapper .button-list-default{
    padding: 5px;
    background: #4585D0;
    border: 1px solid #4585D0;
    color: white;
    border-radius: 4px;
}
.header-detail-wrapper .button-detail-default{
    padding: 5px;
    background: #4585D0;
    border: 1px solid #4585D0;
    color: white;
    border-radius: 4px;
}
.action-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.create-button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.create-button:hover {
    background-color: #0056b3;
}
#calendar {
   width: 100%;
    margin: 0 auto;
}

.fc-view-container {
      width: auto;
  }

.fc-view-container .fc-view {
    overflow-x: scroll;
}
.calendar-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.calendar-layout .fc td{
    border: 0.5px solid grey!important;
    border-style: solid!important;
}
.calendar-layout .fc .fc-daygrid-day-top{
    display: inline-block;
}
.calendar-layout .fc-event{
    font-size: 12px;
}
.calendar-container {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.info-box {
    width: 35%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    border-radius: 8px;
}
.info-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.holiday-carousel {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 10px;
    max-height: 300px;
    scroll-snap-type: y mandatory;
    padding-right: 10px;
}

.holiday-slide {
    width: 100%;
    height: 80px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    text-align: left;
    gap: 10px;
}
.holiday-date-box-cb {
    background-color: #FFA800;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
    font-weight: 900;
    font-family: Mulish;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.holiday-date-box-ln {
    background-color: red;
    color: white;
    padding: 5px;
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
    font-weight: 900;
    font-family: Mulish;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.holiday-name {
    font-size: 16px;
    font-weight: 500;
    font-family: Mulish;
    text-align: center;
    margin-top: 8px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.modaldayoff {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.20), 0px 30px 70px -10px rgba(17, 24, 38, 0.25), 0px 0px 0px 1px rgba(152, 161, 178, 0.10);
}
.modal-dayoff-content {
    background: #FFFFFF;
    margin: auto;
    margin-top: 10%;
    padding: 20px;
    border-radius: 12px;
    border: 6px solid #E3E3E3;
    width: 30%;
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.20), 0px 30px 70px -10px rgba(17, 24, 38, 0.25), 0px 0px 0px 1px rgba(152, 161, 178, 0.10);
}
.modal-dayoff-content .modal-row {
    margin-bottom: 10px;
    margin-top: 10px;
    flex-direction: row;
    display: flex;
    gap: 10px;
}
.modal-dayoff-content .modal-row .inside-row{
    width: 100%;
}
.modal-dayoff-content .modal-row .inside-row .date-input-wrappers {
    width: 48%;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
}
.modal-dayoff-content .modal-row .inside-row .date-input-wrappers input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-sizing: border-box;
}
.modal-dayoff-content .modal-row .inside-row .date-input-wrappers:last-child {
    float: right;
}
.modal-dayoff-content .modal-row span{
    display: inline!important;
    font-weight: bold;
    margin-bottom: 5px;
    justify-content: center;
    font-family: Mulish;
    font-size: 14px;
    color: #36344D;
    font-weight: 400;
    margin-left: auto;
}
.modal-dayoff-content .modal-row .dropdown-select {
    width: 100%;
    padding: 8px;

}
.modal-dayoff-content .modal-row #location{
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.modal-dayoff-content .modal-row #division{
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.modal-dayoff-content .modal-row #holidayname{
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.modal-dayoff-top-row {
    border-bottom: 1px solid #E9EDF5;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.modal-title {
    margin: 0;
    font-family: Mulish;
    color: #2F1C6A;
    font-size: 20px;
}
.closeModalDayoff {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.closeModalDayoff:hover,
.closeModalDayoff:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.buttons-container {
    display: flex;
    justify-content: flex-end;
}
.buttons-container button:first-child {
    margin-right: 10px;
}
.buttons-container .custom-btn {
    padding: 10px;
    border: 1px solid #DBDBDB;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
}
.buttons-container #cancelButton {
    background-color: #FFFFFF;
    color: red;
}
.buttons-container #submit_button {
    background-color: #356BD4;
    color: white;
}
.buttons-container #submit_button2 {
    background-color: #356BD4;
    color: white;
}
.buttons-container #cancelButton:hover,
.buttons-container #submit_button:hover,
.buttons-container #submit_button2:hover{
    border: 2px solid #0f0f0f;
}
.buttons-container #cancelButton:active,
.buttons-container #submit_button:active,
.buttons-container #submit_button2:active{
    background-color: #DBDBDB;
}
.fc-view-container .fc-view {
    overflow-x: scroll;
}
/* Style for a day cell that has an event */
.has-event-highlight .fc-daygrid-day-number {
    background-color: #FFA500; /* Example color: orange */
    color: white;
    border-radius: 50%;
    width: 24px; /* Adjust size as needed */
    height: 24px; /* Adjust size as needed */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Optional: Style for the cell itself */
.has-event-highlight {
    background-color: rgba(255, 165, 0, 0.2); /* Lighter background for the entire cell */
    width: 20px!important; /* Adjust size as needed */
    height: 20px!important; /* Adjust size as needed */
}
/* Add this to your stylesheet */
.mobile-calendar .fc-event-main,
.mobile-calendar .fc-event {
    display: none !important;
}

/* This will also handle any event borders that might be left behind */
.mobile-calendar .fc-daygrid-event {
    border: none !important;
}
/* --- Media Queries --- */

/* For screens smaller than 1024px (Laptops and Tablets) */
@media (max-width: 1024px) {
    .calendar-layout {
        flex-direction: column; /* Stack calendar and info box vertically */
        gap: 15px;
    }

    .calendar-container {
        width: 100%; /* Calendar takes full width */
        padding: 8px;
    }

    .info-box {
        width: 100%; /* Info box takes full width */
        padding: 15px;
    }

    .holiday-carousel {
        max-height: 250px; /* Adjust max height for carousel */
    }

    .holiday-date-box-cb,
    .holiday-date-box-ln {
        width: 45px; /* Adjust width for smaller screens */
        height: 45px; /* Adjust height for smaller screens */
        font-size: 14px; /* Adjust font size */
    }

    .modal-dayoff-content {
        width: 50%; /* Make modal wider for tablets */
        margin-top: 15%;
        padding: 15px;
    }

    .modal-dayoff-content .modal-row .inside-row {
        flex-direction: column; /* Stack labels and inputs in modal rows */
        gap: 5px;
    }

    .modal-dayoff-content .modal-row .inside-row .date-input-wrappers {
        width: 100%; /* Full width for date inputs */
    }

    .modal-dayoff-content .modal-row .inside-row .date-input-wrappers:last-child {
        float: none; /* Remove float */
    }

    .modal-dayoff-content .modal-row {
        flex-direction: column; /* Stack elements in modal rows */
        gap: 10px;
    }

    .modal-dayoff-content .modal-row .radio-group {
        flex-direction: column; /* Stack radio buttons vertically */
        gap: 10px;
    }
}

/* For screens smaller than 768px (Tablets and smaller phones) */
@media (max-width: 768px) {
    .header-list-wrapper {
        padding: 15px 0;
    }

    .create-button {
        padding: 8px 15px;
        font-size: 13px;
    }

    .calendar-container {
        padding: 5px;
    }

    .info-box {
        padding: 10px;
    }

    .info-title {
        font-size: 16px;
    }

    .holiday-carousel {
        max-height: 200px; /* Further adjust max height */
    }

    .holiday-slide {
        height: 70px; /* Slightly smaller slide height */
        padding: 8px;
    }

    .holiday-date-box-cb,
    .holiday-date-box-ln {
        width: 40px; /* Further adjust width for smaller screens */
        height: 40px; /* Further adjust height for smaller screens */
        font-size: 12px; /* Further adjust font size */
    }

    .holiday-name {
        font-size: 14px;
    }

    .modal-dayoff-content {
        width: 75%; /* Make modal even wider for smaller tablets/large phones */
        margin-top: 10%;
        padding: 10px;
        border: 4px solid #E3E3E3;
    }

    .modal-title {
        font-size: 18px;
    }

    .closeModalDayoff {
        font-size: 24px;
    }

    .modal-dayoff-content .modal-row .inside-row {
        gap: 5px; /* Reduce gap */
    }

    .buttons-container .custom-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-list-wrapper {
        padding: 10px 0;
    }

    .fc-toolbar-title {
        font-size: 15px !important;
        margin: 0;
    }

    .create-button {
        width: 100%;
        margin-top: 10px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .action-row {
        justify-content: center;
    }

    .calendar-container {
        padding: 5px;
    }

    .info-box {
        padding: 5px;
    }

    .info-title {
        font-size: 14px;
    }

    .holiday-carousel {
        max-height: 180px;
    }

    .holiday-slide {
        height: 60px;
        padding: 5px;
    }

    .holiday-date-box-cb,
    .holiday-date-box-ln {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }

    .holiday-name {
        font-size: 12px;
    }

    .modal-dayoff-content {
        width: 95%;
        margin-top: 5%;
        padding: 8px;
        border: 3px solid #E3E3E3;
    }

    .modal-title {
        font-size: 16px;
    }

    .closeModalDayoff {
        font-size: 20px;
    }

    .modal-dayoff-content .modal-row .inside-row {
        flex-direction: column;
        gap: 3px;
    }

    .modal-dayoff-content .modal-row .inside-row label,
    .modal-dayoff-content .modal-row .inside-row input,
    .modal-dayoff-content .modal-row .inside-row select {
        font-size: 12px;
    }

    .buttons-container {
        flex-direction: column;
        gap: 5px;
    }

    .buttons-container .custom-btn {
        width: 100%;
        margin-left: 0;
        padding: 10px;
    }

    #calendar {
        font-size: 12px;
    }

    .fc .fc-daygrid-day-events {
        display: none;
    }

    .calendar-layout .fc td,
    .fc-daygrid-day {
        height: 45px !important;
        min-height: 45px !important;
        aspect-ratio: 1 !important;
    }

    .fc-daygrid-day-top {
        width: 100%;
        padding: 8px 4px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fc-day-number,
    .fc-daygrid-day-number {
        display: block;
        text-align: center;
        font-weight: bold;
        font-size: 14px;
        padding: 8px;
        border-radius: 50%;
        min-width: 28px;
        min-height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fc-daygrid-body {
        min-height: max-content;
    }

    .fc-scrollgrid-sync-table {
        height: auto !important;
    }

    .calendar-layout .fc td {
        border: 0.5px solid #ddd !important;
        border-style: solid !important;
    }

    .fc-col-header-cell {
        padding: 8px 2px !important;
        font-size: 12px !important;
        font-weight: bold !important;
    }

    .fc-day-today {
        background-color: rgba(255, 255, 0, 0.2) !important;
    }

    .fc-button {
        padding: 4px 8px !important;
        font-size: 11px !important;
        height: 28px !important;
        min-width: auto !important;
    }

    .fc-prev-button,
    .fc-next-button,
    .fc-today-button {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }

    .fc-today-button .fc-button-label {
        font-size: 10px !important;
    }

    .fc-toolbar {
        margin-bottom: 8px !important;
    }

    .fc-toolbar-chunk {
        display: flex;
        align-items: center;
        gap: 2px;
    }
}