/**
 * Time Picker Demo - Option 6 Grid 10-Minute
 */

/* Container */
.time-picker-container {
    min-height: 150px;
}

/* =====================================================
   GRID 10-MINUTE
   ===================================================== */
.tp-grid10 {
    font-size: 0.9em;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.tp-grid10-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.tp-grid10-hour-label {
    width: 60px;
    padding: 10px 8px;
    text-align: right;
    padding-right: 12px;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.85em;
    color: #495057;
}

.tp-grid10-minutes {
    display: flex;
    flex: 1;
}

.tp-grid10-minutes span {
    flex: 1;
    text-align: center;
    padding: 10px 2px;
    font-size: 0.75em;
    color: #6c757d;
    font-weight: 500;
}

.tp-grid10-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tp-grid10-row:last-child {
    border-bottom: none;
}

.tp-grid10-cells {
    display: flex;
    flex: 1;
}

/* Cell Base */
.tp-grid10-cell {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-left: 1px solid #eee;
    transition: all 0.15s ease;
    position: relative;
}

.tp-grid10-cell:first-child {
    border-left: none;
}

/* Cell States */
.tp-grid10-cell.has-data {
    background: #e8f4fd;
}

.tp-grid10-cell.has-data::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #0d6efd;
    border-radius: 50%;
}

.tp-grid10-cell.no-data {
    background: #f8f9fa;
    cursor: not-allowed;
}

.tp-grid10-cell.no-data::after {
    content: '';
    width: 6px;
    height: 2px;
    background: #ccc;
    border-radius: 1px;
}

/* Hover */
.tp-grid10-cell.has-data:hover {
    background: #cfe2ff;
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tp-grid10-cell.has-data:hover::after {
    background: #0b5ed7;
    transform: scale(1.2);
}

/* Selected Range */
.tp-grid10-cell.selected {
    background: #0d6efd !important;
}

.tp-grid10-cell.selected::after {
    background: white !important;
}

/* Start Time */
.tp-grid10-cell.start {
    background: #198754 !important;
}

.tp-grid10-cell.start::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid white;
    background: none !important;
    border-radius: 0;
}

/* =====================================================
   LEGEND
   ===================================================== */
.legend-item {
    display: inline-flex;
    align-items: center;
    margin: 0 12px;
    font-size: 0.85em;
    color: #666;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.legend-dot.available {
    background: #0d6efd;
}

.legend-dot.start {
    background: #198754;
}

.legend-dot.selected {
    background: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3);
}

.legend-dot.empty {
    background: #ddd;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .tp-grid10-cell {
        height: 36px;
    }

    .tp-grid10-cell.has-data::after {
        width: 8px;
        height: 8px;
    }

    .tp-grid10-hour-label {
        width: 40px;
        padding: 8px 4px;
        font-size: 0.85em;
    }

    .tp-grid10-minutes span {
        padding: 8px 2px;
        font-size: 0.75em;
    }
}
