@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

body {
    font-family: "Lato", serif;
    font-style: normal;
}

.popover {
    font-family: "Lato", serif;
    font-size: 0.9rem;
}

.image-input {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.image-input .image-input-wrapper {
    border-radius: 50%;
    border: 3px solid #f5f8fa;
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
}

.image-input:hover .btn-icon {
    opacity: 1;
}

.virtual-keyboard {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 400px;
    max-width: 100%;
}

.keyboard-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    margin-top: 5px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.key-button {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #000 !important;
}

.key-button:hover {
    background: #e9ecef;
    color: #000 !important;
}

.number-button {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f1f3f5;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #000 !important;
}

.number-button:hover {
    background: #e9ecef;
    color: #000 !important;
}

.close-keyboard {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: #e9ecef;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #000 !important;
}

/* Add this to a separate CSS file, e.g., assets/css/calendar.css */
.calendar-table {
    table-layout: fixed;
    width: 100%;
}

.calendar-table th, 
.calendar-table td {
    width: 14.28%;
    height: 30px;
    font-size: 0.8rem;
}

.calendar-table th {
    font-weight: 600;
}

.absence-item {
    cursor: pointer;
}

.absence-item:hover {
    opacity: 0.8;
}

/* Media queries for responsive adjustments */
@media (max-width: 1400px) {
    .calendar-table th, 
    .calendar-table td {
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {
    .calendar-table {
        font-size: 0.7rem;
    }
}

.calendar-table td {
    cursor: pointer;
}


.calendar-day[data-has-absences="true"] {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.absence-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.tooltip {
    font-family: 'Lato', serif !important;
}

.tooltip-inner {
    font-family: 'Lato', serif !important;
    max-width: 250px;
    padding: 8px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.add-absence-icon {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 1rem;
    z-index: 5;
    color: #b7950b !important; /* Info color (light blue) */
}

.calendar-table td:hover .add-absence-icon {
    opacity: 1;
}

.has-absences .small-dot {
    display: none;
}

.calendar-table td {
    height: 40px;
    width: 40px;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.calendar-table td:hover {
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
    transform: scale(1.05);
    z-index: 10;
}

.has-absences {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

.has-absences > div {
    transition: all 0.2s ease-in-out;
}

.has-absences:hover > div {
    filter: brightness(1.1);
}

.tooltip-inner {
    font-family: 'Lato', serif !important;
    max-width: 250px;
    padding: 8px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 4px;
}

#absence-legend .badge {
    padding: 0.4em 0.8em; /* Slightly smaller padding */
    font-size: 0.85rem; /* Smaller font size */
    border-radius: 0.25rem; /* Rounded corners */
}

/* Style for disabled dates */
.flatpickr-day.flatpickr-disabled {
    color: #c62828; /* Dark red text */
    text-decoration: line-through; /* Strikethrough text */
    cursor: not-allowed; /* Change cursor to indicate disabled state */
}

/* Disable hover effect for days off */
.flatpickr-day.flatpickr-disabled:hover {
    background-color: transparent; /* Keep the same background color */
    color: #c62828; /* Keep the same text color */
}

.modal.left .modal-dialog,
.modal.right .modal-dialog {
    position: fixed;
    margin: auto;
    width: 600px !important;
    height: 100%;
    -webkit-transform: translate3d(0%, 0, 0);
        -ms-transform: translate3d(0%, 0, 0);
         -o-transform: translate3d(0%, 0, 0);
            transform: translate3d(0%, 0, 0);
}

.modal.left .modal-content,
.modal.right .modal-content {
    height: 100%;
    overflow-y: auto;
    border-radius: 0;
}

.modal.left .modal-body,
.modal.right .modal-body {
    padding: 15px 15px 80px;
}

/*Left*/
.modal.left.fade .modal-dialog{
    left: -600px;
    -webkit-transition: opacity 0.3s linear, left 0.3s ease-out;
       -moz-transition: opacity 0.3s linear, left 0.3s ease-out;
         -o-transition: opacity 0.3s linear, left 0.3s ease-out;
            transition: opacity 0.3s linear, left 0.3s ease-out;
}

.modal.left.fade.show .modal-dialog{
    left: 0;
}
    
/*Right*/
.modal.right.fade .modal-dialog {
    right: -600px;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
       -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
         -o-transition: opacity 0.3s linear, right 0.3s ease-out;
            transition: opacity 0.3s linear, right 0.3s ease-out;
}

.modal.right.fade.show .modal-dialog {
    right: 0;
}

.badge-ocean {
    background-color: #6fa8ff !important; /* Lighter and warmer blue */
}

.badge-mint {
    background-color: #4cecb4 !important; /* Lighter and warmer mint */
}

.badge-lavender {
    background-color: #a56eff !important; /* Lighter and warmer lavender */
}

.badge-amber {
    background-color: #ffb347 !important; /* Lighter and warmer amber */
}

.badge-coral {
    background-color: #ff7a7f !important; /* Lighter and warmer coral */
}

.badge-slate {
    background-color: #6b8ba4 !important; /* Lighter and warmer slate */
}

.badge-danger {
    background-color: #e44618 !important; /* Lighter and warmer slate */
}

/* .table-responsive {
    overflow: visible !important;
} */