.krea3-calendar {
    max-width: 400px;
    font-family: sans-serif;
}

.k3-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.k3-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.k3-day-head {
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

.k3-day {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px;
    cursor: pointer;
}

.k3-day:hover,
.k3-day:focus {
    background: #e6f2ff;
}

.k3-day.available {
    background: #e8f7e8;
}

.k3-day.reserved {
    background: #f8d7da;
}

.k3-day.pending {
    background: #fff3cd;
}

.k3-day.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.k3-day.selected {
    background: #0073aa;
    color: #fff;
}

.k3-day.range {
    background: #cce5ff;
}

.k3-alert {
    margin-top: 10px;
    padding: 10px;
    background: #f8d7da;
    color: #721c24;
    font-size: 14px;
}

.k3-day:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* CSS popup */
.k3-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.k3-modal-content {
    background: #fff;
    padding: 20px;
    max-width: 320px;
    width: 100%;
    border-radius: 8px;
}

.k3-modal-content h3 {
    margin-top: 0;
}

.k3-slot {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background: #f1f1f1;
    border: none;
    cursor: pointer;
}

.k3-slot:hover,
.k3-slot:focus {
    background: #0073aa;
    color: #fff;
}

.k3-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}