.smileup-calendar-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.calendar-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    border: 1px solid #eee;
}

.grid-header, .grid-cell {
    padding: 10px;
    border: 1px solid #f5f5f5;
    text-align: center;
}

.grid-header {
    background: #f9f9f9;
    font-weight: bold;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.time-label {
    background: #fafafa;
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Day Column Container */
.day-column {
    display: contents; /* Allows children to be placed in the main grid */
}

/* Individual Slot in Grid */
.time-slot {
    border: 1px solid #f9f9f9;
    min-height: 60px;
    position: relative;
    padding: 5px;
}

.time-slot.available {
    background: #fff;
    cursor: pointer;
}

.time-slot.available:hover {
    background: #f0f9ff;
}

.time-slot.available::after {
    content: 'Disponible';
    display: block;
    font-size: 10px;
    color: #0073aa;
    opacity: 0.3;
}

/* Appointment Style */
.appointment-item {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    z-index: 5;
    color: #fff;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-PENDIENTE { background: #ff9800; border-left: 4px solid #e68a00; }
.status-CONFIRMADO { background: #4caf50; border-left: 4px solid #3d8b40; }
.status-EN_ATENCION { background: #2196f3; border-left: 4px solid #0b7dda; }
.status-ATENDIDO { background: #9e9e9e; border-left: 4px solid #757575; }
.status-REPROGRAMADO { background: #673ab7; border-left: 4px solid #512da8; }

/* Sidebar Modal/Panel */
.appointment-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 30px;
    transition: right 0.3s ease;
}

.appointment-sidebar.active { right: 0; }

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    display: none;
}
