

:root {
    --gine-primary: #f4a6b8;
    --gine-primary-hover: #ee8fa5;
    --gine-bg-soft: #fdecef;
    --gine-text: #495057;
    --gine-success: #7bcfa6;
    --gine-border: #e6e6e6;
}

/* -- Estilos del login -- */

/* ===============================
   LOGIN 
   =============================== */
/*logo*/
.login-logo img {
  width: 130px; /* Ajusta el tamaño según lo necesites */
  height: 500px; /* Asegúrate de que la altura sea proporcional al ancho */
}

/* fondo de pantalla */
body.login-page {
  background-image: url("../img/wallpaperGine1.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Texto "INICIAR SESIÓN" */
.login-box-msg {
  font-size: 80px;
  color: #008080; /* teal elegante */
  font-weight: 800;
  letter-spacing: 1px;
}

/* Card del login */
.login-card-body {
  border-radius: 12px;
}

/* Inputs */
.login-card-body .form-control {
  border-radius: 8px;
}

/* Botón login */
.btn-login {
  border-radius: 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
/* Overlay oscuro elegante */
.login-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* Ojito mostrar/ocultar contraseña */
.toggle-password {
  cursor: pointer;
  background-color: #f4f6f9;
}

.toggle-password i {
  color: #6c757d;
  transition: color 0.3s ease;
}

.toggle-password:hover i {
  color: #008080; /* teal */
}
/* Botón login */
.btn-login {
  border-radius: 25px;
  font-size: 18px;
  padding: 10px;
  background: linear-gradient(135deg, #20c997, #0d6efd);
  border: none;
}

.btn-login:hover {
  opacity: 0.9;
}

/* Checkbox recordar usuario */
.icheck-primary label {
  font-size: 15px;
  color: #555;
}

.login-box {
  width: 380px;
}
/* Hacer el login más compacto */
.login-card-body {
  padding: 25px 20px;

}

/* Ajustar tamaño del contenedor */
.login-box {
  width: 360px;
  margin-top: -15px;
  margin-bottom: 10px;
}
.btn-login {
  border-radius: 22px;
  font-size: 16px;
  padding: 8px 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #2bb3b1, #1d8cf8);
  border: none;
}
/*card donde esta el inicar sesion*/
.login-title-card{
    background:#f8d7e3; /* color rosado suave */
    padding:5px;
    border-radius:10px;
    margin-bottom:10px;
    text-align:center;

    /* efecto elevado */
    box-shadow:0 6px 15px rgba(0,0,0,0.2);

    /* pequeño efecto flotante */
    transform:translateY(-10px);
}

/*cambiar la letra */
.titulo-login{
    font-size:22px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
}

.subtitulo-login{
    font-size:14px;
    color:#777;
}

.doctora-login{
    font-size:18px;
    font-weight:600;
    color:#d63384;
}

.login-title-card p{
    margin:0;
    font-size:16px;
    color:#333;
}

/* Contenedor recordar usuario */
.remember-box {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Texto del checkbox */
.icheck-primary label {
  font-size: 15px;
  color: #008080;
  font-weight: 500;
}

/* Color del check */
.icheck-primary input:checked + label::before {
  background-color: #008080;
  border-color: #008080;
}

.login-box-msg {
  font-size: 18px;
  margin-bottom: 15px;
}

/* Evitar que el checkbox se salga del card */
.remember-box {
  padding-left: 14px;
  margin-bottom: 15px;
  overflow: hidden;
}

/* Asegurar que icheck no desborde */
.icheck-primary {
  max-width: 100%;
}
.btn-login {
  border-radius: 22px;
  font-size: 16px;
  padding: 8px 10px;
  margin-top: 12px;
  margin-bottom: 20px; /* 🔑 separación inferior */
  background: linear-gradient(135deg, #2bb3b1, #1d8cf8);
  border: none;
}
.login-card-body {
  padding-bottom: 30px;
}

/* ===============================
   FIN LOGIN 
   =============================== */


/* ===============================
   INICIO DATA TABLE CLIENTE  
   =============================== */

/* CONTENEDOR GENERAL */
.text-expand,
.text-ellipsis {
    position: relative;
}

/* TOOLTIP PERSONALIZADO */
.text-expand::before,
.text-ellipsis::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #198754, #20c997);
    color: #fff;
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,.2);
    z-index: 9999;
}

/* FLECHITA */
.text-expand::after,
.text-ellipsis::after {
    content: "";
    position: absolute;
    bottom: 108%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #20c997 transparent transparent transparent;
    opacity: 0;
    transition: all .25s ease;
}

/* MOSTRAR TOOLTIP */
.text-expand:hover::before,
.text-expand:hover::after,
.text-ellipsis:hover::before,
.text-ellipsis:hover::after {
    opacity: 1;
}

/* ELLIPSIS */
.text-ellipsis {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
    color: #083a84;
    font-weight: 500;
}

/* EXPANDIBLE */
.text-expand {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    color: #495057;
}

/* EXPANDIDO */
.text-expand.expanded {
    white-space: normal;
    overflow: visible;
    background: #f8f9fa;
    padding: 8px;
    border-left: 4px solid #198754;
    border-radius: 6px;
}

/* ===============================
   FIN DATA TABLE CLIENTE  
   =============================== */

/* ===============================
   INICIO CALENDARIO  
   =============================== */
/* EVENTO COMPLETO COMO BLOQUE */
.fc-event {
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 12px;
}

/* TEXTO DEL EVENTO */
.fc-event-title,
.fc-event-time {
  color: #ffffff !important; /* blanco elegante */
  font-weight: 500;
}

/* ===== FULLCALENDAR MONTH FIX ===== */

/* Harness para month */
.fc-daygrid-event-harness {
  width: 100% !important;
}

/* Evento dentro de month */
.fc-daygrid-event {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
}

/* Wrapper del contenido del evento */
.fc-event-custom {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

/* Hora del evento */
.fc-event-time {
  flex-shrink: 0;
  font-weight: 600;
}

/* Título del evento */
.fc-event-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ===== FULLCALENDAR WEEK/DAY (multi-line) ===== */
.fc-timegrid-event .fc-event-title {
  white-space: normal;  /* permite salto de línea si es largo */
  overflow: hidden;
}
/* ===== TIMEGRID (week/day) ===== */
.fc-timegrid-event {
  max-width: 100% !important;    /* no se pase del contenedor */
  overflow: hidden;
}

.fc-timegrid-event .fc-event-main {
  white-space: normal !important; /* permite saltos de línea */
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-timegrid-event .fc-event-title {
  white-space: normal !important; /* título en varias líneas */
  overflow-wrap: break-word;       /* rompe palabras largas si hace falta */
  word-break: break-word;
}

.fc-timegrid-event .fc-event-time {
  flex-shrink: 0;
  font-weight: 600;
}

/* Tooltip estilo FullCalendar */
.fc-event[title] {
  cursor: pointer; /* Indica que se puede pasar el mouse */
  position: relative;
}

/*select de estatus  */


/* Estilo para los selects del modal */
#modalEstatus, 
#modalTipoCita
{
    border: 1.5px solid #ced4da; /* borde más visible */
    border-radius: 8px;          /* bordes suaves */
    padding: 6px 12px;           /* más espacio dentro */
    font-size: 14px;             /* tamaño cómodo */
    min-width: 150px;            /* ancho mínimo */
    transition: all 0.3s ease;   /* animación suave al cambiar color */
}

/* Opcional: cuando se enfoca, cambiar el borde */

#modalEstatus:focus, 
#modalTipoCita:focus{
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,.5);
}

/* ===============================
   TABLA CONTROL PARENTAL DETALLE
   =============================== */

/* ===============================
   DASHBOARD
=============================== */



/* =========================
   CONTENEDOR DASHBOARD
========================= */

.dashboard-container{

margin:7px;
padding:28px;

border-radius:16px;

background:linear-gradient(135deg,#f8fafc,#eef7ff);

box-shadow:0 10px 30px rgba(0,0,0,0.05);

}

/* =========================
   TITULO
========================= */
/* Reducir espacio arriba del dashboard */
.content-wrapper .content-header {
    margin-bottom: -10px; /* antes era mb-2 o mb-3 */
    padding-top: 0px;   /* elimina el padding extra */
}

/* Opcional: si quieres que suba más aún */
.dashboard-container {
    margin-top: 0px;
}
/* HEADER */

.dashboard-header{

display:flex;
justify-content:space-between;
align-items:center;


margin-bottom:20px;

}

.dashboard-title{

font-size:20px;
font-weight:700;

color:#442544;

display:flex;
align-items:center;

gap:10px;

}

.dashboard-title i{

font-size:20px;
color:#2563eb;

}

.dashboard-time{

font-size:13px;
color:#64748b;

background:#ffffff;

padding:6px 12px;

border-radius:8px;

box-shadow:0 2px 6px rgba(0,0,0,0.05);

}

/* =========================
   ROW
========================= */

.dashboard-row{

margin-left:5px;
margin-right:5px;

}

/* =========================
   CARD WIDGET
========================= */

.card-widget{

background:#ffffff;

border-radius:12px;

padding:14px 16px;

display:flex;

align-items:center;

gap:12px;

box-shadow:0 4px 12px rgba(0,0,0,0.05);

transition:all .25s ease;

height:70px;

}

.card-widget:hover{

transform:translateY(-4px) scale(1.02);

box-shadow:0 10px 25px rgba(0,0,0,0.08);

}

/* =========================
   ICONOS
========================= */

.widget-icon{

width:40px;
height:40px;

border-radius:10px;

display:flex;
align-items:center;
justify-content:center;

font-size:18px;

}

/* =========================
   TEXTO
========================= */

.widget-title{

font-size:13px;

color:#64748b;

}

.widget-number{

font-size:20px;

font-weight:700;

color:#1e293b;

}

/* =========================
   COLORES PASTEL
========================= */


/* CARD PENDIENTE */

.card-pendiente{

background:linear-gradient(135deg,#fff7ed,#ffedd5);

}

/* CARD CONFIRMADA */

.card-confirmada{

background:linear-gradient(135deg,#ecfdf5,#d1fae5);

}

/* CARD ATENDIDA */

.card-atendida{

background:linear-gradient(135deg,#eff6ff,#dbeafe);

}

/* CARD CANCELADA */

.card-cancelada{

background:linear-gradient(135deg,#fef2f2,#fee2e2);

}


/* =========================
   CONTENEDOR GRAFICO
========================= */

.card-grafico{

border-radius:14px;
box-shadow:0 6px 18px rgba(0,0,0,0.06);
border:none;
margin-top:15px;

}

/* =========================
   HEADER
========================= */

.custom-head{

background:linear-gradient(135deg,#2563eb,#1d4ed8);
color:white;
padding:12px 18px;

}

.custom-head .card-title{

font-size:16px;
font-weight:600;
letter-spacing:1px;

}

.custom-head .btn-tool{

color:white;

}

/* =========================
   BODY
========================= */

.card-grafico .card-body{

background:#f8fafc;
padding:20px;

}

/* =========================
   CONTENEDOR CHART
========================= */

#contenedor_grafico{

position:relative;
width:100%;
height:300px;

}

#grafico_pagos{

width:100% !important;
height:100% !important;

}

/* =========================
   FILTRO FECHAS
========================= */
/* CARD TITULO */

.card-titulo-grafico{

border:none;

border-radius:14px;

box-shadow:0 6px 18px rgba(0,0,0,0.06);

margin-bottom:15px;

background:linear-gradient(135deg,#f8fafc,#eef2ff);

}

/* BODY DEL TITULO */

.titulo-grafico-body{

display:flex;

align-items:center;

gap:15px;

padding:18px;

}

/* ICONO */

.titulo-icono{

width:50px;

height:50px;

border-radius:12px;

background:#2563eb;

display:flex;

align-items:center;

justify-content:center;

color:white;

font-size:20px;

}

/* TEXTO */

.titulo-texto h4{

margin:0;

font-weight:600;

color:#1e293b;

}

.titulo-texto span{

font-size:13px;

color:#64748b;

}

/* INPUT */

.row-inputs-fecha input{

border-radius:8px;
border:1px solid #e2e8f0;
transition:all .2s ease;

}

.row-inputs-fecha input:focus{

border-color:#2563eb;
box-shadow:0 0 0 2px rgba(37,99,235,0.15);

}

/* BOTON */

.btn-buscar-grafico{

border-radius:8px;
height:38px;
transition:all .2s ease;

}

.btn-buscar-grafico:hover{

transform:scale(1.03);

}

/* =========================
   HOSTORICO DASH CONSULTA
========================= */
/* CARD TITULO */

.card-titulo-historico{

border:none;

border-radius:14px;

box-shadow:0 6px 18px rgba(0,0,0,0.06);

margin-bottom:10px;

background:linear-gradient(135deg,#f9fafb,#d0f7dd);

}

/* BODY DEL TITULO */

.titulo-historico-body{

display:flex;

align-items:center;

gap:15px;

padding:18px;

}

/* ICONO */

.titulo-icono-historico{

width:50px;

height:50px;

border-radius:12px;

background:#08230e;

display:flex;

align-items:center;

justify-content:center;

color:white;

font-size:20px;

}

/* TEXTO */

.titulo-texto-historico h4{

margin:0;

font-weight:600;

color:#1e293b;

}

.titulo-texto-historico span{

font-size:13px;

color:#64748b;

}


/* =========================
   RESPONSIVE
========================= */

@media (max-width:768px){

#contenedor_grafico{

height:250px;

}

.row-inputs-fecha{

padding:12px;

}

}

/* ===============================
   CARD CONSULTA Y PRENATAL DASHBOARD
   =============================== */
.card-indicador{

border:none;
border-radius:14px;
box-shadow:0 6px 16px rgba(0,0,0,0.06);
transition:all .2s ease;
height:100%;

}

.card-indicador:hover{

transform:translateY(-3px);

}


/* BODY */

.card-indicador .card-body{

display:flex;
align-items:center;
gap:15px;

}


/* ICONO */

.indicador-icon{

width:50px;
height:50px;
border-radius:12px;
display:flex;
align-items:center;
justify-content:center;
font-size:20px;
color:white;

}


/* TEXTO */

.indicador-titulo{

font-size:13px;
color:#64748b;
display:block;

}

.indicador-numero{

font-size:22px;
font-weight:700;
color:#1e293b;

}


/* COLORES */

.indicador-pacientes .indicador-icon{

background:#0891b2;

}

.indicador-consulta .indicador-icon{

background:#2563eb;

}

.indicador-activo .indicador-icon{

background:#16a34a;

}

.indicador-cerrado .indicador-icon{

background:#dc2626;

}

.indicador-total .indicador-icon{

background:#9333ea;

}


/* RESPONSIVE */

@media (max-width:768px){

.indicador-numero{

font-size:20px;

}

.indicador-icon{

width:45px;
height:45px;

}

}

/* ===============================
  MODAL DEL DASHBOARD DE CLICK EN CARD
   =============================== */
.lista-pacientes{

display:flex;
flex-direction:column;
gap:12px;

}

.paciente-card{

background:#ffffff;
border-radius:10px;
padding:14px;

box-shadow:0 3px 10px rgba(0,0,0,0.08);

display:flex;
justify-content:space-between;
align-items:center;

border-left:5px solid #17a2b8;

transition:all .2s ease;

}

.paciente-card:hover{

transform:translateY(-2px);
box-shadow:0 6px 14px rgba(0,0,0,0.12);

}

.paciente-info{

display:flex;
flex-direction:column;

}

.paciente-nombre{

font-weight:600;
font-size:15px;

}

.paciente-detalle{

font-size:13px;
color:#6c757d;

}

.paciente-hora{

font-size:13px;
font-weight:600;
color:#17a2b8;

}

.btn-atender{

background:#0c100d;
color:rgb(242, 239, 239);
border:none;
padding:6px 12px;
border-radius:6px;
font-size:12px;

}

.btn-atender:hover{

background:#0c4d70;

}

/* ===============================
   PANEL LATERAL 
   =============================== */
/* SIDEBAR MEDICO PREMIUM */

.main-sidebar{
    background:#14182f !important;
    border-right:1px solid #1e2448;
}

/* LOGO */
.brand-link{
    background:#1b1f3f;
    border-bottom:1px solid #2a2f5e;
    padding:25px;
}

.brand-text{
    color:#e8f2f7;
    font-weight:500;
    font-size:16px;
}

/* PANEL USUARIO */

.user-panel{
    border-bottom:1px solid #252b55;
    padding-bottom:12px;
}

.user-panel .info a{
    color:#cfe8f5;
    font-size:13px;
}

/* ITEMS MENU */

.nav-sidebar .nav-link{
    color:#b7d6e5;
    border-radius:10px;
    margin:4px 10px;
    padding:10px 14px;
    transition:all .25s ease;
    position:relative;
}

/* HOVER */

.nav-sidebar .nav-link:hover{
    background:#202553;
    color:#a8f0d2;
    transform:translateX(3px);
}

/* ICONOS */

.nav-sidebar .nav-icon{
    color:#8fd3c1;
    font-size:15px;
    width:22px;
}

/* ACTIVO */

.nav-sidebar .nav-link.active{
    background:#25306b;
    color:#b8ffe3;
    font-weight:500;
}

/* BARRA ACTIVA LATERAL */

.nav-sidebar .nav-link.active::before{
    content:"";
    position:absolute;
    left:-10px;
    top:6px;
    height:70%;
    width:4px;
    background:#7ef0c5;
    border-radius:4px;
}

/* SUBMENU */

.nav-treeview .nav-link{
    padding-left:30px;
    font-size:13px;
}

/* ESPACIO */

.sidebar{
    padding-top:10px;
}

.nav-sidebar .nav-item{
    margin-bottom:2px;
}

.user-panel img{
width:38px;
height:38px;
}

.nav-sidebar .nav-link:hover .nav-icon{
    transform:scale(1.1);
}

.brand-image{
    height:175px;
    width:auto;
    max-height:120px;
    margin-right:10px;
}

/* ===============================
    NAV DEL LOGIN CERRAR EN EL DASHBOARD
   =============================== */

/* NAVBAR MEDICO */

.navbar-medico{
background:#ffffff;
border-radius:12px;
margin:10px;
padding:6px 15px;
box-shadow:0 4px 12px rgba(0,0,0,0.05);
}

/* BOTON MENU */

.btn-menu{
font-size:25px;
color:#5c6f80;
}

/* USUARIO */

.user-dropdown{
display:flex;
align-items:center;
gap:10px;
}

/* AVATAR */

.user-avatar{
width:38px;
height:38px;
border-radius:50%;
object-fit:cover;
border:2px solid #e6f2f7;
}

/* NOMBRE */

.user-name{
font-size:18px;
color:#4b5c6b;
}

/* DROPDOWN */

.dropdown-menu{
border-radius:10px;
border:none;
box-shadow:0 8px 18px rgba(0,0,0,0.08);
}

/* HEADER DROPDOWN */

.user-header{
text-align:center;
padding:18px;
background:#f5f9fc;
}

/* AVATAR GRANDE */

.user-avatar-large{
width:65px;
height:65px;
border-radius:50%;
margin-bottom:8px;
}

/* BOTON SALIR */

.btn-salir{
background:#eaf4fb;
border-radius:20px;
padding:6px 16px;
font-size:13px;
color:#4d6c80;
border:none;
}

.btn-salir:hover{
background:#dcecf8;
}

.main-header{
background:transparent;
border:none;
}

/* ===============================
    FOOTER 
   =============================== */
.main-footer {
    width: 100%;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15); /* transparente, clarito */
    color: #3b3b3b;
    font-size: 14px;
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
    bottom: 0;
    backdrop-filter: blur(5px); /* efecto vidrio sutil */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left a {
    color: #3b3b3b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-left a:hover {
    color: #5ca0d3; /* azul pastel suave */
    text-decoration: underline;
}

.footer-right a {
    color: #3b3b3b;
    margin-left: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.footer-right a:hover {
    color: #5ca0d3;
    transform: scale(1.2);
}

/* Responsivo: en pantallas pequeñas, se apilan los elementos */
@media (max-width: 576px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .footer-right a {
        margin-left: 8px;
        margin-right: 8px;
    }
}

/* ===============================
    
   =============================== */