/* ===== Final CSS to match mockup ===== */

:root{
	--bg-card:#F2F9F9;
	--panel-bg:#F2F9F9;
	--panel-inner:#EAF6F5; /* subtle inner panel */
	--muted:#D6E6E6;
	--accent:#FF6A2D;
	--success:#2DDDA2;
	--text:#282425;
}

.schedule-component{
	display:flex;
	flex-direction:row;
	width:1241px;
	background:var(--bg-card);
	border-radius:8px;
	margin:24px auto;
	box-sizing:border-box;
	overflow:hidden;
}

/* left and right panels share the same inner rounded background */
.schedule-panel{
	box-sizing:border-box;
}
.schedule-panel--left{
	width:50%;
	padding:28px 36px 32px 36px;
	background:transparent;
	display:flex;
	flex-direction:column;
	align-items:flex-start;
}
.schedule-panel--right{
	width:50%;
	padding:32px 36px;
	background:transparent;
	display:flex;
	flex-direction:column;
	justify-content:space-between;
}

/* inner white-ish area to mimic mock */
.schedule-inner{
	background:var(--panel-inner);
	border-radius:8px;
	padding:24px;
	box-sizing:border-box;
}

.panel-title{
	font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
	font-weight:700;
	font-size:24px;
	line-height:24px;
	color:var(--text);
	margin:0 0 16px 0;
}

.selected-date-display {
	font-size: 18px;
	font-weight: 500;
	color: var(--accent);
	margin: -8px 0 16px 0;
	font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
}

/* Calendar header */
.calendar{
	width:100%;
	max-width:540px;
}
.calendar-header{
	display:flex;
	align-items:center;
	justify-content:space-between;
	background:var(--muted);
	border-radius:10px;
	padding:8px 12px;
	gap:12px;
}
.cal-nav{
	width:36px;
	height:36px;
	border-radius:8px;
	display:flex;
	align-items:center;
	justify-content:center;
	background:#282425;
	color:#fff;
	border:none;
	box-shadow:0 1px 0 rgba(0,0,0,0.08);
}
.cal-nav:active{transform:translateY(1px)}
.cal-month{
	font-size:18px;
	font-weight:500;
	color:var(--text);
	text-align:center;
	flex:1;
}
.calendar-separator{height:1px;background:rgba(0,0,0,0.06);margin:18px 0;border-radius:1px}

/* day labels row */
.day-labels{display:flex;justify-content:center;gap:18px;margin-bottom:12px}
.day-labels .day{font-size:13px;color:var(--text);width:40px;text-align:center;letter-spacing:0.6px;font-weight:700}

/* calendar grid */
.calendar-grid{display:flex;flex-direction:column;gap:10px;align-items:center}
.calendar-row{display:flex;gap:18px}
.calendar-day{
	width:40px;
	height:40px;
	border-radius:50%;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:16px;
	color:var(--text);
	transition:all .12s ease;
}
.calendar-day.inactive{color:#D8D8D8;opacity:0.85}
.calendar-day.pilled{border-radius:50%}
.calendar-day:hover{transform:translateY(-2px)}
.calendar-day.is-selected{background:var(--success);color:#fff;box-shadow:0 4px 10px rgba(45,221,162,0.18)}

/* slightly smaller numbers for compact look */
.calendar-day span{display:inline-block;font-size:15px}

/* Divider */
.schedule-divider{width:4px;background:var(--accent);margin:0}

/* Time grid */
.time-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding-top:8px}
.time-item{width:169px;height:45px;background:var(--muted);border-radius:8px;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;cursor:pointer}
.time-item.is-selected{background:var(--success);color:#fff}
.time-item .time-text{font-weight:700;font-size:18px;line-height:24px}

/* Actions */
.schedule-actions{display:flex;justify-content:flex-end;padding-top:16px}
.btn-primary{width:312px;height:46px;background:var(--accent);border:1px solid var(--accent);border-radius:4px;color:#fff;font-weight:700;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}

/* Responsive */
@media (max-width:1000px){
	.schedule-component{flex-direction:column;width:100%;height:auto;padding:16px}
	.schedule-panel--left,.schedule-panel--right{width:100%;padding:16px}
	.time-grid{grid-template-columns:repeat(2,1fr)}
	.btn-primary{width:100%;max-width:312px}
}

.fc-event-container .blocked {
	background-color: var(--success);
}

.time-grid .blocked {
	background-color: var(--success);
}

/* small helper */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


.fc-event, .fc-event-dot, .fc-more {
    display: none !important;
}


.fc-day-top, .fc-day {
    cursor: default !important;
}

.day-with-activity, .clickable-day {
    cursor: pointer !important;
}

.blocked {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.clickable-day:hover {
    background-color: #f9f9f9 !important;
}


.fc-day-top {
    text-align: center !important;
    vertical-align: middle !important;
}
@media (min-width: 768px) {
    .time-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.fc-day-number {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    
    width: 32px !important; 
    height: 32px !important;
    
    float: none !important; 
    margin: 5px auto !important; 
    
    border-radius: 50%;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.fc-day-top:not(.day-with-activity) .fc-day-number {
    color: #999 !important;
    background-color: transparent !important;
    opacity: 0.6;
}

.day-with-activity .fc-day-number {
    background-color: #2DDDA2 !important;
    color: black !important;
    opacity: 1 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fc-past .fc-day-number {
    opacity: 0.3 !important;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover
 {
    border: 1px solid #000;
    background: #000;
    font-weight: normal;
    color: #ffffff;
}
/* Elimina el scroll del contenedor principal del calendario */
.fc-scroller {
    height: auto !important;
    overflow: visible !important;
}

/* Asegura que la vista de mes no limite su altura */
.fc-month-view, .fc-basic-view {
    height: auto !important;
}

/* Si el scroll aparece en el contenedor de la tabla */
.fc-view-container {
    overflow: visible !important;
}
/* Contenedor del ítem */
.time-item {
    margin-bottom: 8px;
    width: 100%;
}

/* El label que ahora es el botón */
.time-slot-wrapper {
    display: flex !important;
    align-items: center;
    cursor: pointer !important;
    user-select: none;
}

.time-slot-wrapper:hover {
    filter: brightness(0.9);
}

.time-slot-wrapper:active {
    transform: scale(0.98); /* Pequeño efecto de hundimiento al clickear */
}

/* El selector dentro del botón */
.time-slot-wrapper input[type="radio"],
.time-slot-wrapper input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    pointer-events: none; /* Deja que el click lo maneje el label padre */
}

/* Estado seleccionado (cuando está marcado) */
.time-item.is-selected {
    background-color: var(--success) !important;
    color: #fff !important;
}

.time-item.is-selected .time-text {
    color: #fff !important;
}
.time-item.blocked {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none; /* Esto evita cualquier clic extra */
}

/* --- Estilo Premium para Tooltip de Precios --- */
.has-tooltip {
    position: relative;
}

.has-tooltip:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #282425;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* Pequeña flecha del tooltip */
.has-tooltip:before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #282425 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    pointer-events: none;
}

.has-tooltip:hover:after, 
.has-tooltip:hover:before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.blocked.day-with-activity .fc-day-number {
    opacity: 0.3 !important;    
}   
