/* Estilo para los formularios */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    background-color: #f8f9fa;
}

.form {
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
}

.form h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #0056b3;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border: 1px solid #0056b3;
}

.form-group .form-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #ccc;
}

.form-group input:focus + .form-icon {
    color: #0056b3;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.form-text {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

.form-text a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.form-text a:hover {
    color: #003580;
}


/* General styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
.header {
    background-color: #0056b3;
    color: white;
    padding: 15px 20px; /* Ajusta el padding para que sea consistente */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px; /* Asegúrate de que todos los textos del header tengan el mismo tamaño */
    box-sizing: border-box; /* Asegura que el padding no afecte el tamaño total */
}

.header .logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.header .logo a {
    text-decoration: none;
    color: white;
}

.header .nav {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
}

.header .nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header .nav a:hover {
    color: #ffcc00;
}

/* Actions */
.header .actions {
    display: flex;
    gap: 10px;
}

/* Aplica este estilo a ambos botones */
/* Aplica este estilo a ambos botones para un tamaño uniforme */
.btn-secondary {
    background-color: #ffcc00;
    text-decoration: none;
    border: none;
    color: #0056b3;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background: #fff;
    color: #0056b3;
    transform: scale(1.05);
}



.header .btn-secondary {
    background-color: #ffcc00;
    color: #0056b3;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.header .btn-secondary:hover {
    background-color: #fff;
    color: #0056b3;
    transform: scale(1.05);
}

/* Menu toggle (mobile) */
.menu-toggle {
    display: none; /* Oculto en desktop */
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

.nav-mobile {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    background: #0056b3;
    position: absolute;
    top: 60px; /* Debajo del header */
    right: 0;
    left: 0;
    padding: 15px 30px;
    gap: 15px;
    z-index: 1000;
}

.nav-mobile a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-mobile a:last-child {
    border-bottom: none; /* Elimina el borde del último elemento */
}

.nav-mobile a:hover {
    color: #ffcc00;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none !important; /* Oculta la navegación de escritorio */
    }

    .menu-toggle {
        display: block; /* Visible en móvil */
    }

    .nav-mobile.active {
        display: flex; /* Muestra el menú al activar */
    }

    .header {
        flex-wrap: nowrap; /* Evita que los elementos se desplacen hacia abajo */
    }
}
/* Footer */
.footer {
    background: #0056b3;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 10px 10px 0 0;
}

.footer a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .about-grid {
        flex-direction: column; /* Apila los elementos verticalmente */
        text-align: center;
    }

    .about-text,
    .about-image {
        flex: 1 1 100%;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ajusta tarjetas para pantallas pequeñas */
    }
}
.btn-secondary-2 {
    display: block;
    width: 90%;
    padding: 12px;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    background: #ffcc00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-secondary-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}




/* Sección de Exámenes Médicos */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 5px;
}

.exam-card {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.exam-card .form-group {
    margin-bottom: 15px;
}

.exam-card .form-group label {
    font-weight: bold;
    color: #333;
}

.exam-card .form-group input,
.exam-card .form-group textarea,
.exam-card .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
    box-sizing: border-box;
}

.exam-card .form-group input:focus,
.exam-card .form-group textarea:focus,
.exam-card .form-group select:focus {
    border: 1px solid #0056b3;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}

#add-exam-btn {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#add-exam-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#exams-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espaciado entre las tarjetas */
}

.exam-card {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


/* Botón principal */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Botón secundario */
.btn-secondary-2 {
    background: #ffcc00;
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary-2:hover {
    background: #ffc107;
    transform: scale(1.05);
}

/* Estilo para las alertas */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.alert.alert-danger {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-section {
        padding: 15px;
    }

    .exam-card {
        padding: 10px 15px;
    }

    .btn-primary,
    #add-exam-btn {
        width: 100%;
    }
}
.modal-body {
    display:flexbox;
    flex-direction: row;
    gap: 1rem;
}

#appointmentForm {
    max-width: 100%;
    margin: auto;
}

#calendar {
    flex-grow: 1;
}

.fc-timegrid-slot {
    font-size: 0.9rem; /* Tamaño de fuente para mejorar la legibilidad */
}

.modal-dialog {
    max-width: 100%; /* Asegura que el modal ocupe el 70% del ancho */
}

#calendar {
    height: auto;
    width: 100%; /* Asegura que el calendario ocupe todo el espacio disponible */
}


/* Estilos para el calendario */
.my-calendar {
    max-width: 90%;
    margin: 0 auto;
    background-color: #f4f4f9; /* Fondo suave */
    border-radius: 10px;
    padding: 10px;
}

/* Estilo para los eventos */
.fc-event {
    background-color: #28a745; /* Verde para citas disponibles */
    color: white;
    border-radius: 5px;
    font-size: 14px;
}

/* Estilo para el header del calendario */
.fc-toolbar {
    background-color: #0069d9; /* Azul para el encabezado */
    color: white;
    border-radius: 8px;
    padding: 5px;
}

/* Modificar la apariencia del modal */
.modal-content {
    background-color: #f8f9fa; /* Fondo del modal */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-header {
    background-color: #007bff; /* Azul */
    color: white;
}

.modal-footer {
    background-color: #f8f9fa;
}

/* Ajustes para pantallas móviles */
@media (max-width: 768px) {
    .my-calendar {
        width: 100%;
        padding: 5px; /* Reduce el padding en pantallas pequeñas */
        min-height: 550px; /* Aumentar la altura mínima para dispositivos móviles */
    }

    /* Asegurar que los eventos no ocupen mucho espacio */
    .fc-event {
        font-size: 12px; /* Reducir tamaño de fuente */
    }

    /* Asegurar que el encabezado del calendario no sea muy grande */
    .fc-toolbar {
        font-size: 12px; /* Reducir el tamaño de la fuente en el header */
        padding: 5px;
    }

    /* Ajuste de la altura de las filas en el calendario */
    .fc-daygrid-day {
        height: auto !important; /* Evitar que las celdas se estiren demasiado */
    }

    /* Ajuste de la altura de las filas de eventos */
    .fc-daygrid-event {
        font-size: 10px; /* Reducir la fuente de los eventos */
    }

    /* MODAL */
    .modal-dialog {
        width: 90%;
    }
}


    /* Renombrando las clases para evitar conflictos */
    .chat-box-custom {
        height: 400px; /* Altura aumentada */
        overflow-y: auto;
        background-color: #FFFFFF;
        display: flex;
        flex-direction: column;
        padding: 15px;
        border-radius: 10px;
    }

    .chat-message-custom {
        display: flex;
        margin-bottom: 15px;
    }

    .chat-message-custom.user {
        justify-content: flex-end;
    }

    .chat-message-custom.doctor {
        justify-content: flex-start;
    }

    .bubble-custom {
        max-width: 70%;
        padding: 10px 15px;
        border-radius: 25px;
        font-size: 14px;
        line-height: 1.5;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: relative;
        background-color: #DCF8C6; /* Verde claro estilo WhatsApp */
        color: #333;
    }

    .chat-message-custom.user .bubble-custom {
        background-color: #DCF8C6;
        color: #333;
        border-bottom-right-radius: 0;
    }

    .chat-message-custom.doctor .bubble-custom {
        background-color: #E9ECEF;
        color: #333;
        border-bottom-left-radius: 0;
    }

    .bubble-custom::before {
        content: '';
        position: absolute;
        bottom: 0;
        width: 0;
        height: 0;
        border-style: solid;
    }

    .chat-message-custom.user .bubble-custom::before {
        right: -10px;
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent #DCF8C6;
    }

    .chat-message-custom.doctor .bubble-custom::before {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent #E9ECEF transparent transparent;
    }


        /* Estilos para la página de Términos y Condiciones */

/* Fondo general y espaciado */
.terms_container {
    background-color: #f8f9fa; /* Fondo suave */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Título principal */
.t_h1 {
    font-size: 2.5rem;
    color: #007bff; /* Azul principal */
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Subtítulos */
.t_h2 {
    font-size: 1.8rem;
    color: #343a40; /* Color del subtítulo */
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Párrafos */
.t_p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* Listas */
.t_ul {
    padding-left: 20px;
    color: #555;
}

.t_li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
}


/* Estilo para las secciones */
.terms_section {
    margin-top: 20px;
}

/* Responsividad */
@media (max-width: 768px) {
    .terms_container {
        padding: 20px;
    }

    .t_h1 {
        font-size: 2rem;
    }

    .t_h2 {
        font-size: 1.6rem;
    }

    .t_p, .t_li {
        font-size: 0.95rem;
    }
}


.t_a {
    color: #007bff;
    text-decoration: none;
}

.t_a:hover {
    text-decoration: underline;
}


.modal-body img {
    max-width: 100%;
    max-height: 70vh; /* Limita la altura al 70% de la ventana */
    display: block;
    margin: 0 auto;
}
.modal-body {
    overflow: hidden; /* Evita que el contenido desborde */
    position: relative;
}

.modal-body img {
    max-width: 100%;
    max-height: 70vh;
    transition: transform 0.2s ease; /* Suaviza el zoom */
    cursor: grab;
}

#weekdayChart, #hourlyChart, #genderChart {
    width: 100%;
    height: 400px;
    min-height: 200px;
    background: #f5f5f5;
    border: 1px solid #ddd;
}
.pagination {
    justify-content: center;
}

.pagination .page-item .page-link {
    color: #007bff;
    text-decoration: none;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: white;
}
