/* =========================
   BASE
========================= */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

/* =========================
   FORM / FOCUS
========================= */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================
   LOGO
========================= */

.logo-login {
    max-height: 90px;
    opacity: .25;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.15));
}

/* =========================
   PATIENT HEADER
========================= */

.patient-hero {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.patient-title {
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.patient-sub {
    font-size: .9rem;
    color: #6c757d;
}

.patient-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.patient-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================
   ICON BUTTONS (CIRCULARES)
========================= */

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    transition: .2s;
}

    .icon-btn i {
        font-size: 16px;
    }

/* =========================
   HISTORY ACTIONS
========================= */

.history-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.history-action-btn {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fff;
    min-height: 52px;
    padding: 10px 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: .15s;
}

    .history-action-btn:hover {
        transform: translateY(-1px);
    }

/* =========================
   BOTONES PRINCIPALES APP
========================= */
.app-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 18px;
}

.appt-actions-mobile {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 0;
    border-top: 1px solid #eee;
    z-index: 10;
}

/* BOTÓN BASE */
.app-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px; /* 👈 tamaño fijo */
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none !important;
    transition: all .15s ease;
}

    /* ICONO */
    .app-btn-pill i {
        font-size: 14px;
    }

/* PRIMARY */
.app-btn-primary {
    background: #d94b79;
    color: #fff !important;
    border-color: #d94b79;
}

    .app-btn-primary:hover {
        background: #c43f6c;
        border-color: #c43f6c;
    }

/* LIGHT */
.app-btn-light {
    background: #fff;
    color: #6b7280 !important;
    border-color: #e5e7eb;
}

    .app-btn-light:hover {
        background: #f8fafc;
        color: #374151 !important;
    }

/* DANGER */
.app-btn-danger {
    background: #fff1f2;
    color: #dc2626 !important;
    border-color: #fecdd3;
}
.app-footer a {
    font-size: .86rem;
    transition: color .18s ease;
}

    .app-footer a:hover {
        color: #c7436a !important;
    }
/* =========================
   RESPONSIVE (SIN CAMBIAR TAMAÑO BOTONES)
========================= */

@media (max-width: 768px) {

    .patient-header {
        flex-direction: column;
    }

    .patient-actions {
        justify-content: center;
        width: 100%;
    }

    .icon-btn {
        width: 44px;
        height: 44px;
    }

    .history-actions {
        grid-template-columns: 1fr;
    }
}
