/* ═══════════════════════════════════════════
   Monabot - Frontend Portal v2.0
   ═══════════════════════════════════════════ */
.mbot-portal { font-family: -apple-system,'Segoe UI',Roboto,'Helvetica Neue',sans-serif; max-width: 900px; margin: 0 auto; padding: 20px; }

/* Alerts */
.mbot-alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.mbot-alert-error { background: #ffebee; color: #c62828; border-left: 4px solid #c62828; }
.mbot-alert-info { background: #e3f2fd; color: #1565c0; border-left: 4px solid #1565c0; }

/* Login */
.mbot-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; }
.mbot-login-header { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; text-align: center; padding: 36px 30px 28px; }
.mbot-login-icon { font-size: 48px; margin-bottom: 12px; }
.mbot-login-header h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.mbot-login-header p { margin: 0; font-size: 14px; opacity: 0.85; }
.mbot-login-subtitle { font-size: 12px !important; opacity: 0.65 !important; margin-top: 8px !important; }
.mbot-login-form { padding: 30px; }
.mbot-field { margin-bottom: 20px; }
.mbot-field label { display: block; font-weight: 600; font-size: 14px; color: #333; margin-bottom: 8px; }
.mbot-field input { 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; }
.mbot-field input:focus { border-color: #00796b; box-shadow: 0 0 0 3px rgba(0,121,107,0.1); outline: none; }
.mbot-field small { display: block; color: #999; font-size: 12px; margin-top: 6px; }
.mbot-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; }
.mbot-btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,121,107,0.3); }
.mbot-login-footer { text-align: center; padding: 20px 30px; background: #fafafa; border-top: 1px solid #f0f0f0; }
.mbot-login-footer p { font-size: 13px; color: #999; margin: 0 0 10px; }
.mbot-btn-wa-sm-pub { display: inline-block; padding: 8px 20px; background: #25d366; color: #fff !important; border-radius: 20px; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.mbot-btn-wa-sm-pub:hover { background: #1da851; }

/* Dashboard */
.mbot-dashboard-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; border-radius: 12px; margin-bottom: 24px; }
.mbot-dashboard-header h2 { margin: 0; font-size: 22px; color: #fff; }
.mbot-dashboard-header p { margin: 4px 0 0; opacity: 0.7; font-size: 14px; }
.mbot-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; }
.mbot-btn-logout:hover { background: rgba(255,255,255,0.25); }
.mbot-section-portal h3 { font-size: 20px; margin-bottom: 20px; }

/* Exam cards */
.mbot-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; }
.mbot-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; }
.mbot-exam-card-header h4 { margin: 0; font-size: 16px; color: #004d40; }
.mbot-badge-portal { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.mbot-badge-fasting { background: #fff3e0; color: #e65100; }
.mbot-exam-card-body { padding: 20px; }
.mbot-instruction-block { margin-bottom: 16px; }
.mbot-instruction-block strong { display: block; margin-bottom: 6px; font-size: 14px; color: #333; }
.mbot-instruction-block p, .mbot-instruction-block div { font-size: 14px; line-height: 1.7; color: #555; margin: 0; }
.mbot-instruction-block.mbot-important { background: #fff8e1; border-left: 4px solid #f9a825; padding: 12px 16px; border-radius: 4px; }
.mbot-empty-state { text-align: center; padding: 60px 30px; background: #fafafa; border-radius: 12px; border: 2px dashed #e0e0e0; }
.mbot-empty-icon { font-size: 56px; margin-bottom: 16px; }
.mbot-empty-state h3 { font-size: 18px; color: #555; }
.mbot-empty-state p { font-size: 14px; color: #999; }
.mbot-portal-contact { text-align: center; padding: 30px; background: #fff; border-radius: 12px; border: 1px solid #e8e8e8; margin-top: 30px; }
.mbot-portal-contact h3 { margin-top: 0; }
.mbot-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; }
.mbot-btn-whatsapp-portal:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(37,211,102,0.3); }
.mbot-hours { font-size: 13px; color: #999; margin-top: 12px; }

/* Department contact buttons (shortcode) */
.mbot-dept-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 20px 0; }
.mbot-dept-btn { display: flex; flex-direction: column; align-items: center; padding: 20px 24px; border-radius: 12px; color: #fff !important; text-decoration: none !important; font-weight: 600; min-width: 140px; transition: transform 0.2s, box-shadow 0.2s; }
.mbot-dept-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.mbot-dept-btn-icon { font-size: 32px; margin-bottom: 8px; }
.mbot-dept-btn-name { font-size: 13px; text-align: center; }

@media (max-width: 600px) {
    .mbot-portal { padding: 10px; }
    .mbot-login-container { margin: 20px auto; }
    .mbot-dashboard-header { flex-direction: column; text-align: center; gap: 12px; }
    .mbot-exam-card-header { flex-direction: column; align-items: flex-start; }
}
