/* ------- LOGIN DE INIACIAR SESION ----- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #071d33, #2c7be5);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CONTENEDOR */
.login-container {
    width: 100%;
    padding: 20px;
}

/* TARJETA */
.login-card {
    background: #fff;
    max-width: 420px;
    margin: auto;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

/* HEADER */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    width: 130px;
    margin-bottom: 10px;
}

.login-header h2 {
    color: #071d33;
}

.login-header p {
    color: #777;
    font-size: 14px;
}

/* INPUTS */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 14px;
    color: #999;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #2c7be5;
    outline: none;
}

/* OPCIONES */
.login-options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 25px;
}

.login-options a {
    text-decoration: none;
    color: #2c7be5;
    font-weight: bold;
}

.login-options a:hover {
    color: #ff6b00;
}

/* BOTÓN */
.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(45deg, #2c7be5, #ff6b00);
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}


/* ------ BOTON REGRESAR -------- */

.btn-regresar {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(45deg, #ff0000);
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-regresar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
}


/* ------------------------- diseño modal en caso de que la contrasela sea incorrecta ----- */

.modal-error {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-box {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 90%;
    width: 350px;
}

.modal-box i {
    font-size: 50px;
    color: #e74c3c;
    margin-bottom: 10px;
}

.modal-box p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}


/* MODAL DE CERRAR SESION -------------------------------------*/

.modal-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-box-success {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 90%;
    width: 350px;
}

.modal-box-success i {
    font-size: 50px;
    color: #2ecc71;
    margin-bottom: 10px;
}

.modal-box-success p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}


/* 
PANEL.PHP DISEÑO COMPLETO ACA */

/* ============================= */
/* RESET Y BASE */
/* ============================= */

/* ===== GENERAL ===== */
body{
    margin:0;
    font-family:'Segoe UI';
    display:flex;
    background:#f1f5f9;
}

/* ===== SIDEBAR ===== */
.sidebar{
    width:230px;
    background:#0f172a;
    height:100vh;
    color:white;
    padding:20px;
}

.sidebar h2{text-align:center;}

.sidebar a{
    display:block;
    color:white;
    text-decoration:none;
    padding:12px;
    margin:10px 0;
    border-radius:8px;
    transition:.3s;
}

.sidebar a:hover{background:#2563eb;}

/* ===== CONTENIDO ===== */
.main{flex:1;padding:30px;}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    margin-bottom:30px;
}

.card{
    background:white;
    padding:20px;
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.card h3{margin:0;font-size:32px;color:#2563eb;}

/* ===== TABLA ===== */
table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

th,td{padding:14px;text-align:left;}
th{background:#0f172a;color:white;}

.estado{
    padding:6px 12px;
    border-radius:20px;
    color:white;
    font-size:12px;
}
.pendiente{background:#f59e0b;}
.confirmada{background:#22c55e;}
.cancelada{background:#ef4444;}

.btn{
    padding:6px 10px;
    border:none;
    border-radius:6px;
    color:white;
    cursor:pointer;
    margin:2px;
}
.accept{background:#22c55e;}
.cancel{background:#f97316;}
.delete{background:#ef4444;}

/* ===== MODAL PREMIUM ===== */
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.7);
    backdrop-filter:blur(6px);
    justify-content:center;
    align-items:center;
}

.modal-content{
    background:white;
    border-radius:18px;
    padding:35px;
    width:90%;
    max-width:420px;
    text-align:center;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
}

.modal-icon{font-size:50px;margin-bottom:15px;}

.modal-actions{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.modal-actions button{
    flex:1;
    padding:12px;
    border:none;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
}

.btn-primary{background:#2563eb;color:white;}
.btn-secondary{background:#e2e8f0;color:#334155;}

/* BUSCADOR PROFESIONAL */

/* BUSCADOR PROFESIONAL IZQUIERDA */

.search-box{
    margin-bottom:20px;
    display:flex;
    justify-content:flex-start; /* 👈 CAMBIO CLAVE */
}

.search-box input{
    width:350px;
    max-width:100%;
    padding:12px 15px;
    border-radius:10px;
    border:1px solid #cbd5e1;
    font-size:15px;
    transition:.3s;
    background:#fff;
}
.search-box{
    margin:20px 0;
}

.search-box input{
    width:100%;
    max-width:400px;
}



.search-box input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 8px rgba(37,99,235,.25);
}

/* CONTENEDOR BUSCADOR + BOTON */

.search-container{
    display:flex;
    align-items:center;
    gap:15px;
    margin:20px 0;
}

/* BOTON NUEVA CITA PREMIUM */

.btn-new{
    background:linear-gradient(135deg,#2563eb,#1e40af);
    color:white;
    border:none;
    padding:12px 22px;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
    font-size:15px;
    box-shadow:0 5px 15px rgba(37,99,235,.3);
    transition:.3s;
}

.btn-new:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(37,99,235,.4);
}


/* ===== MODAL BIENVENIDA ===== */

.modal-bienvenida{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.7);
    backdrop-filter:blur(6px);
    justify-content:center;
    align-items:center;
    z-index:999;
}

.bienvenida-box{
    background:white;
    border-radius:18px;
    padding:40px;
    width:90%;
    max-width:500px;
    text-align:center;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
    animation:aparecer .4s ease;
}

.bienvenida-box h2{
    margin:0 0 15px;
    color:#2563eb;
}

.bienvenida-info{
    display:flex;
    gap:20px;
    margin-top:25px;
}

.bienvenida-card{
    flex:1;
    background:#f1f5f9;
    padding:20px;
    border-radius:12px;
}

.bienvenida-card h3{
    margin:0;
    font-size:28px;
    color:#2563eb;
}

@keyframes aparecer{
    from{transform:scale(.8);opacity:0}
    to{transform:scale(1);opacity:1}
}


/* ===== MODAL VER CITA ===== */
.modalCita {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modalCita-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    text-align: left;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modalCita-body {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.modalCita-column {
    flex: 1;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h3 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 24px;
}

.modalCita-column p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.modalCita-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary {
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .modalCita-body {
        flex-direction: column;
    }
}