@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap');

* { box-sizing: border-box; }
body { font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
.glass { background: rgba(15, 23, 42, .72); backdrop-filter: blur(18px); }
.panel { border: 1px solid rgba(255,255,255,.1); border-radius: 1.5rem; background: rgba(15,23,42,.66); padding: 1.25rem; box-shadow: 0 20px 70px rgba(0,0,0,.2); }
.btn-primary, .btn-secondary, .icon-btn, .nav-dot { display: inline-flex; align-items: center; justify-content: center; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.btn-primary { border-radius: 1rem; background: #67e8f9; color: #08111f; padding: .72rem 1rem; font-weight: 800; }
.btn-secondary { border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(255,255,255,.06); color: #e2e8f0; padding: .68rem 1rem; font-weight: 700; }
.btn-primary:hover, .btn-secondary:hover, .icon-btn:hover, .nav-dot:hover { transform: translateY(-1px); }
.icon-btn { height: 2.5rem; min-width: 2.5rem; border-radius: .9rem; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.nav-dot { height: 3rem; width: 3rem; border-radius: 1rem; color: #cbd5e1; background: rgba(255,255,255,.05); }
.nav-dot.active, .nav-dot.dev { background: rgba(34,211,238,.18); color: #a5f3fc; }
.input { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(2,6,23,.55); padding: .75rem .9rem; color: #f8fafc; outline: none; }
.input:focus { border-color: rgba(103,232,249,.65); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.label { display: block; margin-bottom: .4rem; color: #cbd5e1; font-size: .85rem; font-weight: 700; }
.choice { display: flex; gap: .75rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; padding: 1rem; background: rgba(255,255,255,.04); }
.choice small { display: block; color: #94a3b8; margin-top: .2rem; }
.check { display: flex; align-items: center; gap: .5rem; color: #dbeafe; }
.room-card { display: block; border: 1px solid rgba(255,255,255,.1); border-radius: 1.25rem; background: rgba(255,255,255,.055); padding: 1rem; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.room-card:hover { transform: translateY(-2px); border-color: rgba(103,232,249,.3); background: rgba(255,255,255,.08); }
.badge-dev { display: inline-flex; align-items: center; border-radius: 999px; background: linear-gradient(135deg,#22d3ee,#34d399); color: #04111f; padding: .16rem .5rem; font-size: .68rem; font-weight: 900; vertical-align: middle; }
.message { display: flex; gap: .75rem; border-radius: 1.25rem; padding: .7rem; animation: rise .2s ease; }
.message:hover { background: rgba(255,255,255,.04); }
.message.deleted { opacity: .68; }
.prose-flow { color: #e2e8f0; overflow-wrap: anywhere; }
.prose-flow a { color: #67e8f9; text-decoration: underline; }
.prose-flow code { border-radius: .45rem; background: rgba(255,255,255,.08); padding: .1rem .3rem; }
.prose-flow pre { overflow:auto; border-radius: .8rem; background: rgba(2,6,23,.8); padding: .8rem; }
.attachment { margin-top: .5rem; display: inline-flex; border-radius: .8rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); padding: .45rem .7rem; color: #a5f3fc; font-size: .85rem; }
.reaction, .message-action { border-radius: 999px; background: rgba(255,255,255,.07); padding: .25rem .55rem; font-size: .8rem; color: #e2e8f0; }
.table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table td { border-bottom: 1px solid rgba(255,255,255,.07); padding: .55rem; white-space: nowrap; }
.link { color: #67e8f9; font-weight: 700; }
.link-danger { color: #fb7185; font-weight: 700; }
.toast { border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(15,23,42,.94); padding: .8rem 1rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: rise .2s ease; }
.panic-screen { position: fixed; inset: 0; z-index: 9999; background: #f8fafc; color: #0f172a; overflow: auto; padding: 1.5rem; }
.homework-card { border: 1px solid #e2e8f0; border-radius: .75rem; background: white; padding: 1rem; box-shadow: 0 12px 30px rgba(15,23,42,.08); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .panel { border-radius: 1rem; padding: 1rem; } .message { padding-left: 0; padding-right: 0; } }
