@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --void: #05050d;
  --ink: #f8f7ff;
  --muted: #9a97b5;
  --violet: #9b6cff;
  --violet-bright: #c4a5ff;
  --cyan: #5ee7f2;
  --line: rgba(203, 183, 255, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-width: 320px; background: var(--void); scroll-behavior: smooth; }
body { min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 78% 14%, rgba(97, 53, 193, 0.2), transparent 28rem), linear-gradient(135deg, #070711 0%, #000 68%); font-family: 'DM Sans', sans-serif; overflow-x: hidden; }
body::before, body::after { position: fixed; z-index: -1; pointer-events: none; content: ''; }
body::before { inset: 0; opacity: 0.16; background-image: linear-gradient(rgba(181, 144, 255, 0.17) 1px, transparent 1px), linear-gradient(90deg, rgba(181, 144, 255, 0.17) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse at center, black, transparent 80%); }
body::after { top: 18%; right: 4%; width: 300px; height: 260px; opacity: 0.25; border: 1px solid var(--violet); border-radius: 50%; box-shadow: inset 0 0 50px rgba(155, 108, 255, 0.15); transform: rotate(28deg); animation: drift 13s ease-in-out infinite; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.portal-selector { display: flex; justify-content: center; gap: 10px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: rgba(4, 4, 12, 0.78); backdrop-filter: blur(18px); }
.portal-tab { padding: 10px 20px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 8px; font-size: 0.78rem; font-weight: 700; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.portal-tab:hover { color: var(--ink); transform: translateY(-2px); }
.portal-tab.active { color: white; background: rgba(155, 108, 255, 0.18); border-color: rgba(196, 165, 255, 0.38); box-shadow: 0 0 25px rgba(155, 108, 255, 0.14); }

.auth-container { position: relative; display: grid; min-height: calc(100vh - 59px); place-items: center; padding: 70px 24px; isolation: isolate; }
.auth-container::before { position: absolute; z-index: -1; top: 10%; left: 15%; width: 260px; height: 160px; content: ''; border: 1px solid rgba(196, 165, 255, 0.25); transform: rotate(-18deg) skewX(-24deg); box-shadow: 0 0 60px rgba(155, 108, 255, 0.1); }
.auth-container::after { position: absolute; z-index: -1; right: 17%; bottom: 12%; width: 140px; height: 140px; content: ''; border: 1px solid rgba(94, 231, 242, 0.24); transform: rotate(45deg); }
.auth-box { width: min(100%, 450px); padding: 38px; background: linear-gradient(145deg, rgba(35, 27, 66, 0.78), rgba(9, 8, 20, 0.82)); border: 1px solid rgba(196, 165, 255, 0.3); border-radius: 20px; box-shadow: var(--shadow), 0 0 70px rgba(115, 61, 226, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.12); backdrop-filter: blur(24px); transform: perspective(1100px) rotateX(1deg); animation: reveal 700ms ease both; }
.auth-box.admin-border { border-color: rgba(94, 231, 242, 0.3); }
.badge-tag, .role-indicator { display: inline-block; width: fit-content; padding: 6px 10px; color: var(--violet-bright); background: rgba(155, 108, 255, 0.12); border: 1px solid rgba(196, 165, 255, 0.2); border-radius: 5px; font-size: 0.63rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-badge { color: var(--cyan); background: rgba(94, 231, 242, 0.08); border-color: rgba(94, 231, 242, 0.22); }
.auth-header h2 { margin: 18px 0 9px; color: white; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.65rem, 4vw, 2.1rem); letter-spacing: -0.04em; }
.auth-header p, .subtitle { color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.auth-header p { margin-bottom: 25px; }
.tab-buttons { display: flex; gap: 4px; margin-bottom: 25px; padding: 4px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 9px; }
.tab-btn { flex: 1; padding: 10px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-weight: 700; transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.tab-btn:hover { color: white; }.tab-btn.active { color: white; background: var(--violet); box-shadow: 0 5px 18px rgba(155, 108, 255, 0.3); }
.input-group { margin-bottom: 18px; }.input-group label { display: block; margin-bottom: 8px; color: #d7d2ed; font-size: 0.72rem; font-weight: 700; }
.input-group input, .input-group select, .inline-form input { width: 100%; padding: 13px 14px; color: white; background: rgba(4, 4, 14, 0.6); border: 1px solid var(--line); border-radius: 8px; outline: 0; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.input-group input::placeholder, .inline-form input::placeholder { color: #6e6a86; }.input-group input:focus, .input-group select:focus, .inline-form input:focus { border-color: var(--violet-bright); box-shadow: 0 0 0 4px rgba(155, 108, 255, 0.12), 0 0 25px rgba(155, 108, 255, 0.14); transform: translateY(-1px); }
.input-group select { appearance: none; }.submit-btn, .save-row-btn { width: 100%; padding: 13px 16px; color: white; background: linear-gradient(110deg, #8150eb, #ae79ff); border: 0; border-radius: 8px; box-shadow: 0 10px 26px rgba(125, 67, 225, 0.25); font-weight: 700; transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease; }.submit-btn:hover, .save-row-btn:hover { filter: brightness(1.12); box-shadow: 0 15px 30px rgba(125, 67, 225, 0.38); transform: translateY(-3px); }.submit-btn:active, .save-row-btn:active { transform: translateY(0); }.admin-btn { background: linear-gradient(110deg, #237d91, #58cfda); }

.dashboard { display: flex; min-height: calc(100vh - 59px); perspective: 1600px; }.sidebar { position: sticky; top: 0; display: flex; width: 260px; min-height: 100vh; flex-direction: column; padding: 34px 18px; background: rgba(10, 8, 22, 0.78); border-right: 1px solid var(--line); backdrop-filter: blur(24px); }.brand { margin: 0 10px 5px; color: white; font-family: 'Space Grotesk', sans-serif; font-size: 1.28rem; font-weight: 700; letter-spacing: -0.04em; text-shadow: 0 0 22px rgba(196, 165, 255, 0.7); }.brand::first-letter { color: var(--violet-bright); }.role-indicator { margin: 18px 10px 34px; font-size: 0.58rem; }.sidebar nav { display: grid; gap: 7px; }.nav-item { width: 100%; padding: 13px 14px; color: var(--muted); text-align: left; background: transparent; border: 1px solid transparent; border-radius: 8px; font-size: 0.78rem; font-weight: 700; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }.nav-item:hover { color: white; background: rgba(155, 108, 255, 0.1); border-color: rgba(196, 165, 255, 0.12); transform: translateX(4px); }.nav-item.active { color: white; background: linear-gradient(100deg, rgba(155, 108, 255, 0.27), rgba(155, 108, 255, 0.06)); border-color: rgba(196, 165, 255, 0.2); box-shadow: inset 3px 0 var(--violet-bright), 0 8px 25px rgba(91, 54, 174, 0.15); }.logout-btn { margin-top: auto; padding: 12px; color: #ff9ba5; background: rgba(255, 92, 115, 0.08); border: 1px solid rgba(255, 92, 115, 0.2); border-radius: 8px; font-weight: 700; transition: background 180ms ease, transform 180ms ease; }.logout-btn:hover { background: rgba(255, 92, 115, 0.16); transform: translateY(-2px); }

.main-body { flex: 1; min-width: 0; padding: 48px clamp(22px, 5vw, 70px); overflow: hidden; }.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }.top-bar h1 { margin-bottom: 8px; color: white; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.06em; }.avatar { display: grid; width: 48px; height: 48px; place-items: center; color: white; background: linear-gradient(145deg, #aa78ff, #4d2ba7); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; box-shadow: 0 0 25px rgba(155, 108, 255, 0.35); font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }.stat-card, .card { position: relative; padding: 25px; background: linear-gradient(145deg, rgba(28, 23, 54, 0.78), rgba(9, 8, 19, 0.78)); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.08); backdrop-filter: blur(18px); transform-style: preserve-3d; transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease; }.stat-card::before, .card::before { position: absolute; top: 0; left: 16%; width: 38%; height: 1px; content: ''; background: linear-gradient(90deg, transparent, var(--violet-bright), transparent); }.stat-card:hover, .card:hover { border-color: rgba(196, 165, 255, 0.4); box-shadow: 0 28px 65px rgba(0, 0, 0, 0.53), 0 0 28px rgba(155, 108, 255, 0.1); transform: translateY(-6px) rotateX(1deg) rotateY(-1deg); }.stat-card h3, .card h2, .card h3 { color: #ded9f1; font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; }.stat-value { margin-top: 16px; color: var(--violet-bright); font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.05em; text-shadow: 0 0 20px rgba(196, 165, 255, 0.28); }.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.card { margin-bottom: 20px; }.card h2 { margin-bottom: 20px; font-size: 1.1rem; }.info-row { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.78rem; }.info-row strong { color: #ebe7f8; text-align: right; }.card ul { display: grid; gap: 15px; padding-left: 20px; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }.courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }.course-card { padding: 18px; background: linear-gradient(135deg, rgba(155, 108, 255, 0.14), rgba(94, 231, 242, 0.04)); border: 1px solid rgba(196, 165, 255, 0.14); border-radius: 10px; transition: transform 180ms ease, border-color 180ms ease; }.course-card:hover { border-color: rgba(196, 165, 255, 0.45); transform: translateY(-4px); }.course-card h3 { margin-bottom: 8px; }.course-card p { margin-bottom: 13px; color: var(--muted); font-size: 0.7rem; }.badge { display: inline-block; padding: 4px 8px; color: var(--violet-bright); background: rgba(155, 108, 255, 0.13); border-radius: 4px; font-size: 0.65rem; }.badge.active { color: #83e9cf; background: rgba(49, 193, 151, 0.12); }
table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 0.78rem; } th, td { padding: 14px 10px; color: var(--muted); text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.08); } th { color: #e5def8; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; } td input { max-width: 130px; padding: 8px; color: white; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 5px; } .inline-form { display: flex; gap: 10px; margin-top: 16px; } .inline-form input { flex: 1; } .inline-form .submit-btn { width: auto; white-space: nowrap; } .admin-actions { margin-bottom: 28px; } .admin-actions h3 { margin-bottom: 8px; }
.portal-footer { padding: 30px 24px 36px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); background: rgba(4, 4, 12, 0.7); font-size: 0.7rem; letter-spacing: 0.06em; }.portal-footer strong { display: block; margin-top: 8px; color: var(--violet-bright); font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; letter-spacing: 0.02em; }
@keyframes reveal { from { opacity: 0; transform: perspective(1100px) translateY(15px) rotateX(3deg); } to { opacity: 1; transform: perspective(1100px) translateY(0) rotateX(1deg); } }
@keyframes drift { 50% { transform: translate(-18px, 18px) rotate(34deg); } }
@media (max-width: 900px) { .dashboard { display: block; }.sidebar { position: relative; width: 100%; min-height: auto; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }.sidebar nav { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }.role-indicator { margin: 12px 10px 10px; }.logout-btn { position: absolute; top: 20px; right: 20px; margin: 0; padding: 9px 13px; }.main-body { padding-top: 32px; } }
@media (max-width: 650px) { .portal-selector { flex-direction: column; }.portal-tab { width: 100%; }.auth-container { padding: 40px 16px; }.auth-box { padding: 26px 20px; }.stats-grid, .content-grid, .courses-grid { grid-template-columns: 1fr; }.main-body { padding: 28px 16px; }.top-bar { align-items: flex-start; }.inline-form { flex-direction: column; }.inline-form .submit-btn { width: 100%; } table { display: block; overflow-x: auto; white-space: nowrap; }.sidebar nav { grid-template-columns: 1fr 1fr; }.sidebar nav .nav-item:last-child { grid-column: 1 / -1; }.logout-btn { position: static; margin-top: 20px; }.portal-footer { padding-bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

.landing-view { position: relative; display: grid; min-height: calc(100vh - 90px); place-items: center; padding: 70px 24px; overflow: hidden; isolation: isolate; }
.landing-content { max-width: 760px; text-align: center; animation: reveal 900ms ease both; }
.landing-kicker { margin-bottom: 20px; color: var(--violet-bright); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.24em; }
.landing-content h1 { color: white; font-family: 'Space Grotesk', sans-serif; font-size: clamp(4rem, 12vw, 9rem); line-height: 0.9; letter-spacing: -0.09em; text-shadow: 0 0 35px rgba(155, 108, 255, 0.45), 0 12px 0 rgba(64, 38, 119, 0.3); }
.landing-quote { margin: 28px 0 14px; color: #eee8ff; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.2rem, 3vw, 1.8rem); }
.landing-copy { max-width: 510px; margin: auto; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.access-portal-btn { margin-top: 32px; padding: 15px 22px; color: white; background: rgba(155, 108, 255, 0.18); border: 1px solid rgba(196, 165, 255, 0.5); border-radius: 8px; box-shadow: 0 0 30px rgba(155, 108, 255, 0.17); font-weight: 700; transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease; }.access-portal-btn span { margin-left: 12px; color: var(--violet-bright); }.access-portal-btn:hover { background: var(--violet); box-shadow: 0 0 38px rgba(155, 108, 255, 0.48); transform: translateY(-4px); }
.landing-wireframe { position: absolute; z-index: -1; color: rgba(196, 165, 255, 0.35); font-size: 11rem; font-weight: 300; line-height: 1; }.landing-wireframe-one { top: 18%; left: 7%; transform: rotate(-22deg); }.landing-wireframe-two { right: 8%; bottom: 19%; color: rgba(94, 231, 242, 0.3); font-size: 8rem; transform: rotate(20deg); }.landing-scroll-hint { position: absolute; bottom: 28px; color: #68627f; font-size: 0.6rem; letter-spacing: 0.18em; }.landing-scroll-hint span { margin-left: 8px; color: var(--violet-bright); font-size: 1rem; }
.captcha-check { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px; color: #c8c1df; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 7px; font-size: 0.75rem; font-weight: 600; transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }.captcha-check input { width: 16px; height: 16px; accent-color: var(--violet); }.captcha-check:has(input:checked) { color: #8ef1c9; background: rgba(54, 211, 153, 0.08); border-color: rgba(54, 211, 153, 0.45); box-shadow: 0 0 20px rgba(54, 211, 153, 0.12); animation: captcha-confirm 420ms ease; }
.otp-modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(12px); }.otp-card { position: relative; width: min(100%, 410px); padding: 34px; background: linear-gradient(145deg, #211943, #090814); border: 1px solid rgba(196, 165, 255, 0.4); border-radius: 16px; box-shadow: var(--shadow), 0 0 65px rgba(155, 108, 255, 0.2); }.otp-card h2 { margin-bottom: 10px; color: white; font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; }.otp-card > p:not(.landing-kicker) { margin-bottom: 24px; color: var(--muted); font-size: 0.8rem; line-height: 1.6; }.modal-close { position: absolute; top: 13px; right: 15px; color: var(--muted); background: transparent; border: 0; font-size: 1.4rem; }.otp-input { width: 100%; margin-bottom: 15px; padding: 14px; color: white; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 8px; outline: 0; text-align: center; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; letter-spacing: 0.4em; }.otp-input:focus { border-color: var(--violet-bright); box-shadow: 0 0 0 4px rgba(155, 108, 255, 0.12); }.otp-card small { display: block; margin-top: 15px; color: #77718f; text-align: center; font-size: 0.65rem; }
.section-note { margin: -10px 0 20px; color: var(--muted); font-size: 0.78rem; }.staff-table-wrap { overflow-x: auto; }.staff-card table { min-width: 720px; }.staff-card td input { width: 100%; max-width: 160px; }.staff-card .save-row-btn { width: auto; padding: 9px 12px; }.record-saved td { background: rgba(49, 193, 151, 0.08); }.add-staff-btn { width: auto; margin-top: 20px; }
@media (max-width: 650px) { .landing-view { min-height: calc(100vh - 120px); }.landing-content h1 { font-size: clamp(3.5rem, 18vw, 6rem); }.landing-wireframe { opacity: 0.55; }.otp-card { padding: 28px 22px; } }
@keyframes captcha-confirm { 0% { transform: scale(0.98); } 55% { transform: scale(1.015); } 100% { transform: scale(1); } }
/* --- NEW STYLES (Refactor) --- */
.auth-error { color: #ff5c73; font-size: 0.75rem; margin: -10px 0 15px; text-align: center; font-weight: 600; }

/* Syllabus Links */
.syllabus-links { display: grid; gap: 12px; margin-top: 15px; }
.syllabus-link { display: flex; align-items: center; gap: 15px; padding: 15px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: white; transition: all 180ms ease; }
.syllabus-link:hover { background: rgba(155, 108, 255, 0.1); border-color: rgba(196, 165, 255, 0.3); transform: translateX(4px); }
.syllabus-icon { font-size: 1.5rem; }
.syllabus-link-text strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.syllabus-link-text p { color: var(--muted); font-size: 0.75rem; margin: 0; }
.link-arrow { margin-left: auto; color: var(--violet-bright); font-weight: bold; }

/* Admissions Form */
.adm-success { background: rgba(49, 193, 151, 0.15); color: #83e9cf; padding: 12px 15px; border-radius: 8px; border: 1px solid rgba(49, 193, 151, 0.3); margin-bottom: 20px; font-size: 0.8rem; }
.adm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.adm-textarea { width: 100%; padding: 13px 14px; background: rgba(4, 4, 14, 0.6); color: white; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; resize: vertical; }
.adm-textarea:focus { border-color: var(--violet-bright); outline: none; }
.adm-submit-btn { margin-top: 10px; }

/* Contact Modal */
.contact-modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(12px); }
.contact-card { position: relative; width: min(100%, 420px); padding: 34px; background: linear-gradient(145deg, #211943, #090814); border: 1px solid rgba(196, 165, 255, 0.4); border-radius: 16px; box-shadow: var(--shadow); }
.contact-card h2 { margin-bottom: 10px; color: white; font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-icon { font-size: 1.5rem; }
.contact-item strong { display: block; color: #e5def8; font-size: 0.85rem; margin-bottom: 4px; }
.contact-link { color: var(--violet-bright); text-decoration: none; font-size: 0.8rem; }
.contact-link:hover { text-decoration: underline; }
.contact-link-muted { color: var(--muted); font-size: 0.8rem; }

/* Chatbot */
.chatbot-fab { position: fixed; bottom: 30px; left: 30px; z-index: 100; display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: rgba(129, 80, 235, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(196, 165, 255, 0.4); border-radius: 30px; color: white; font-weight: 700; box-shadow: 0 10px 25px rgba(125, 67, 225, 0.4); cursor: pointer; transition: transform 0.2s, background 0.2s; }
.chatbot-fab:hover { transform: translateY(-3px); background: rgba(129, 80, 235, 0.8); }
.chatbot-fab-icon { font-size: 1.2rem; }
.chatbot-panel { position: fixed; bottom: 90px; left: 30px; z-index: 100; width: 350px; background: linear-gradient(145deg, rgba(28, 23, 54, 0.95), rgba(9, 8, 19, 0.95)); border: 1px solid rgba(196, 165, 255, 0.4); border-radius: 16px; box-shadow: var(--shadow); backdrop-filter: blur(20px); display: flex; flex-direction: column; overflow: hidden; animation: reveal 0.3s ease; }
.chatbot-header { padding: 15px; background: rgba(0, 0, 0, 0.2); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.chatbot-header-info { display: flex; align-items: center; gap: 10px; }
.chatbot-header-info strong { color: white; font-size: 0.9rem; display: block; }
.chatbot-header-info p { color: var(--muted); font-size: 0.7rem; margin: 0; }
.chatbot-close-btn { position: static; font-size: 1.5rem; color: var(--muted); background: none; border: none; cursor: pointer; }
.chat-messages { height: 250px; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-message { padding: 10px 14px; border-radius: 12px; font-size: 0.8rem; max-width: 85%; line-height: 1.4; }
.bubble-user { background: rgba(155, 108, 255, 0.2); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble-bot { background: rgba(255, 255, 255, 0.05); color: #ded9f1; align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--line); }
.chat-quick-chips { padding: 10px 15px; display: flex; gap: 8px; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
.chat-quick-chips::-webkit-scrollbar { display: none; }
.quick-chip { white-space: nowrap; padding: 6px 12px; background: rgba(155, 108, 255, 0.1); border: 1px solid rgba(196, 165, 255, 0.2); border-radius: 20px; color: var(--violet-bright); font-size: 0.7rem; cursor: pointer; transition: background 0.2s; }
.quick-chip:hover { background: rgba(155, 108, 255, 0.2); }
.chat-input-bar { display: flex; padding: 15px; background: rgba(0, 0, 0, 0.2); border-top: 1px solid var(--line); }
.chat-input-bar input { flex: 1; background: transparent; border: none; color: white; outline: none; font-size: 0.8rem; }
.chat-input-bar input::placeholder { color: #6e6a86; }
.chat-send-btn { background: var(--violet); color: white; border: none; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s; }
.chat-send-btn:hover { transform: translateY(-2px); }
.status-select { background: rgba(0, 0, 0, 0.3); color: white; border: 1px solid var(--line); border-radius: 4px; padding: 4px; font-size: 0.7rem; }

@media (max-width: 650px) {
    .adm-form-grid { grid-template-columns: 1fr; }
    .chatbot-panel { width: calc(100% - 40px); left: 20px; bottom: 80px; }
}
