/* ═══════════════════════════════════════════
   Laboratorio Clínico Platinum - Portal Paciente
   ═══════════════════════════════════════════ */

.ptlab-portal {
    font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ── Alertas ── */
.ptlab-alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ptlab-alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.ptlab-alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

.ptlab-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* ═══════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════ */

.ptlab-login-container {
    max-width: 440px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.ptlab-login-header {
    background: linear-gradient(135deg, #00796b, #004d40);
    color: #fff;
    text-align: center;
    padding: 36px 30px 28px;
}

.ptlab-login-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.ptlab-login-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.ptlab-login-header p {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}

.ptlab-login-subtitle {
    font-size: 13px !important;
    opacity: 0.75 !important;
    margin-top: 8px !important;
}

.ptlab-login-form {
    padding: 30px;
}

.ptlab-field {
    margin-bottom: 20px;
}

.ptlab-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.ptlab-field-icon {
    margin-right: 6px;
}

.ptlab-field input[type="text"],
.ptlab-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ptlab-field input:focus {
    border-color: #00796b;
    box-shadow: 0 0 0 3px rgba(0,121,107,0.1);
    outline: none;
}

.ptlab-field small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 6px;
}

.ptlab-btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00796b, #00897b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}

.ptlab-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,121,107,0.3);
}

.ptlab-btn-login:active {
    transform: translateY(0);
}

.ptlab-login-footer {
    text-align: center;
    padding: 20px 30px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.ptlab-login-footer p {
    font-size: 13px;
    color: #999;
    margin: 0 0 10px;
}

.ptlab-btn-whatsapp-small {
    display: inline-block;
    padding: 8px 20px;
    background: #25d366;
    color: #fff !important;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}

.ptlab-btn-whatsapp-small:hover {
    background: #1da851;
}

/* ═══════════════════════════════════════════
   DASHBOARD DEL PACIENTE
   ═══════════════════════════════════════════ */

.ptlab-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #00796b, #004d40);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 24px;
}

.ptlab-dashboard-header h2 {
    margin: 0;
    font-size: 22px;
    color: #fff;
}

.ptlab-dashboard-header p {
    margin: 4px 0 0;
    opacity: 0.8;
    font-size: 14px;
}

.ptlab-btn-logout {
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 13px;
    transition: background 0.2s;
}

.ptlab-btn-logout:hover {
    background: rgba(255,255,255,0.25);
}

.ptlab-section-portal h3 {
    font-size: 20px;
    color: #1d2327;
    margin-bottom: 20px;
}

/* ── Exam Cards ── */
.ptlab-exam-card-portal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.ptlab-exam-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
    border-bottom: 1px solid #b2dfdb;
    flex-wrap: wrap;
    gap: 8px;
}

.ptlab-exam-card-header h4 {
    margin: 0;
    font-size: 16px;
    color: #004d40;
}

.ptlab-badge-portal {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ptlab-badge-fasting {
    background: #fff3e0;
    color: #e65100;
}

.ptlab-exam-card-body {
    padding: 20px;
}

.ptlab-instruction-block {
    margin-bottom: 16px;
}

.ptlab-instruction-block strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.ptlab-instruction-block p,
.ptlab-instructions-text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.ptlab-instruction-block.ptlab-important {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 12px 16px;
    border-radius: 4px;
}

/* ── Empty State ── */
.ptlab-empty-state {
    text-align: center;
    padding: 60px 30px;
    background: #fafafa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.ptlab-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.ptlab-empty-state h3 {
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
}

.ptlab-empty-state p {
    font-size: 14px;
    color: #999;
}

/* ── Contact Section ── */
.ptlab-portal-contact {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin-top: 30px;
}

.ptlab-portal-contact h3 {
    margin-top: 0;
    color: #333;
}

.ptlab-btn-whatsapp-portal {
    display: inline-block;
    padding: 14px 32px;
    background: #25d366;
    color: #fff !important;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.1s, box-shadow 0.2s;
}

.ptlab-btn-whatsapp-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.ptlab-hours {
    font-size: 13px;
    color: #999;
    margin-top: 12px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .ptlab-portal {
        padding: 10px;
    }

    .ptlab-login-container {
        margin: 20px auto;
    }

    .ptlab-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .ptlab-exam-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
