/* =============================================
   TARJETA CELESTE - Banner del paciente activo
   ============================================= */

/* Fondo celeste para el paciente activo en el navbar hamburguesa */
.paciente-activo {
    background-color: #b5ddea !important;
}

/* --- Contenedor exterior --- */
#contenedorHoyPaciente {
    border-radius: 12px;
    margin: 4px 8px;
    overflow: hidden;
}

/* --- SECCIÓN SUPERIOR: celeste --- */
.tc-top {
    background-color: #b5ddea;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 10px 12px;
    position: relative;
    min-height: 130px;
}

/* Columna izquierda: foto + tipo + sesiones */
.tc-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    margin-right: 10px;
    padding-top: 20px;
}

/* Badge estación - esquina superior izquierda */
.tc-estacion {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Foto del paciente */
.tc-foto {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    cursor: pointer;
}

/* Texto tipo de paciente debajo de foto */
.tc-perfil-tratamiento {
    font-size: 0.75rem;
    color: #333;
    text-align: center;
    margin-top: 4px;
    max-width: 120px;
    line-height: 1.1;
}

/* Barra de progreso de sesiones */
.tc-sesion-bar {
    position: relative;
    width: 100%;
    max-width: 110px;
    height: 16px;
    background-color: #555555;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 4px;
}

.tc-sesion-bar-fill {
    height: 100%;
    background-color: #ff6600;
    border-radius: 8px;
}

.tc-sesion-bar-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    line-height: 16px;
}

/* Barra de sesión en el navbar (hamburguesa) */
.navbar-sesion-bar {
    max-width: 100%;
    height: 14px;
}
.navbar-sesion-bar .tc-sesion-bar-text {
    font-size: 0.65rem;
    line-height: 14px;
}

/* Badge simple de sesiones (fallback sin total) */
.tc-sesion-badge {
    background-color: #ff6600;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 14px;
    border-radius: 12px;
    margin-top: 4px;
    display: inline-block;
}

/* Columna central: nombre, bolitas, timer */
.tc-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

/* Nombre completo del paciente */
.tc-nombre {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
}

/* Contenedor de bolitas de progreso */
.tc-progreso-dots {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 6px;
}

/* Bolitas dentro de la tarjeta celeste */
.tc-progreso-dots .circle {
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

.tc-progreso-dots .circle.active {
    background-color: #007bff;
}

/* Fila del temporizador */
.tc-timer-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tc-timer-icon {
    font-size: 1.2rem;
}

.tc-timer-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
}

/* Botón de mensaje - centro horizontal superior */
.tc-msg-btn {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff6600;
    border: none;
    border-radius: 6px;
    padding: 3px 7px;
    cursor: pointer;
    z-index: 2;
}
.tc-msg-btn i {
    font-size: 1rem !important;
}

.tc-msg-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.tc-msg-btn:not(:disabled):hover {
    opacity: 0.9;
}

/* Columna derecha: figura corporal */
.tc-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 80px;
    padding-bottom: 4px;
}

/* Contenedor de la figura del cuerpo (SVG generado por JS) */
.tc-cuerpo-container {
    width: 45px;
    height: 130px;
}

.tc-cuerpo-svg {
    width: 100%;
    height: 100%;
}

/* Etiquetas I y D para lados del cuerpo */
.tc-cuerpo-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 8px;
    margin-top: 2px;
}

.tc-cuerpo-label {
    font-size: 0.7rem;
    font-weight: bold;
    color: #444;
}

/* --- SECCIÓN INFERIOR: barra gris de notificaciones --- */
.tc-bottom {
    background-color: #3a3a3a;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    min-height: 40px;
    border-radius: 0 0 12px 12px;
}

/* Notificaciones sesión anterior */
.tc-notif-prev {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

/* Separador vertical entre prev y current */
.tc-notif-separator {
    width: 1px;
    height: 24px;
    background-color: #666;
    margin: 0 8px;
}

/* Notificaciones sesión actual */
.tc-notif-current {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

/* Etiqueta de sección de notificaciones (previo/hoy) */
.tc-notif-label {
    font-size: 0.65rem;
    font-weight: bold;
    color: #aaa;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Icono de notificación en barra inferior */
.tc-notif-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-align: center;
}

/* Colores por tipo de notificación */
.tc-notif-pausa { color: #007bff; }
.tc-notif-dolor { color: #ff6600; }
.tc-notif-ayuda { color: #ff6600; }
.tc-notif-problemas { color: #ff6600; }

.tc-notif-placeholder {
    color: #888;
    font-size: 0.7rem;
}
