/* layout wrapper */
.calendar-time-wrapper {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 18px;
}

/* calendar panel */
.calendar-panel {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.06);
    width: 420px;
}

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

.calendar-header button {
    background: #0078d4;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.calendar-header h2 {
    margin: 0;
    color: #0b5fb9;
    font-size: 16px;
}

/* calendar table */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table th {
    padding: 8px 6px;
    font-weight: 700;
    color: #6b7280;
    background: transparent;
    text-align: center;
}

.calendar-cell {
    padding: 8px 6px;
    height: 68px;
    vertical-align: top;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.calendar-cell.empty {
    background: transparent;
    cursor: default;
}

.calendar-cell .date-number {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #0b5fb9;
}

/* today highlight */
.calendar-cell.today .date-number {
    background: #0b5fb9;
    color: white;
}

/* active selected day */
.calendar-cell.active {
    outline: 3px solid rgba(4, 120, 212, 0.12);
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.02), rgba(3, 7, 18, 0.00));
}

/* small dot indicating selections exist on that date */
.calendar-cell .date-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    /* green */
    position: absolute;
    right: 8px;
    bottom: 8px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

/* time panel */
.time-panel {
    width: 320px;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.06);
}

.time-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.time-panel-header h3 {
    margin: 0;
    color: #0b5fb9;
    font-size: 15px;
}

.time-actions button {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
}

/* time slots area */
.time-slots {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
}

.time-slot {
    background: #f8fafc;
    border: 1px solid #e6eefb;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #0b5fb9;
}

.time-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.06);
}

.time-slot.selected {
    background: linear-gradient(90deg, #ecfff1, #e3ffef);
    border-color: #bbf7d0;
    color: #047857;
}

/* info + footer */
.time-info {
    color: #6b7280;
    margin-top: 6px;
    font-size: 13px;
}

.time-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    color: #6b7280;
    font-size: 13px;
}

/* responsive */
@media (max-width: 900px) {
    .calendar-time-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .calendar-panel,
    .time-panel {
        width: 100%;
    }
}