/* ═══════════════════════════════════════════════════════════════ NYAYA SETU — COURTROOM LEGAL RESEARCH INTERFACE Professional judicial aesthetic with formal legal typography ═══════════════════════════════════════════════════════════════ */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { /* Judicial Color Palette */ --judicial-dark: #1a1410; /* Deep wood/bench */ --judicial-navy: #1c233e; /* Formal navy */ --judicial-maroon: #621e3d; /* Judicial accent */ --seal-gold: #d4af37; /* Official seal gold */ --seal-gold-dim: #a8860a; /* Dimmed gold */ --parchment: #f4ede5; /* Legal document white */ --text-dark: #1a1410; /* Primary text */ --text-medium: #4a4a4a; /* Secondary text */ --text-light: #7a7a7a; /* Tertiary text */ /* Borders & Dividers */ --border-dark: rgba(26, 20, 16, 0.1); --border-accent: rgba(212, 175, 55, 0.2); --border-gold: rgba(212, 175, 55, 0.5); /* Status Colors */ --verified-green: #2d5d3f; --attention-red: #8b3e3e; --neutral-gray: #6b5f52; } html, body { height: 100%; } body { font-family: 'DM Sans', sans-serif; background: var(--navy); color: var(--text-1); font-size: 14px; line-height: 1.6; } /* ── LAYOUT ── */ .app-container { display: flex; height: 100vh; overflow: hidden; } /* ── SIDEBAR ── */ .sidebar { width: 272px; background: var(--navy-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px; gap: 12px; overflow-y: auto; transition: width 0.3s ease; } .sidebar.collapsed { width: 60px; } .sidebar.collapsed .brand-text, .sidebar.collapsed .btn-primary span, .sidebar.collapsed .btn-secondary span, .sidebar.collapsed .sessions-header, .sidebar.collapsed .sidebar-footer { display: none; } .sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); } .brand { display: flex; align-items: center; gap: 10px; flex: 1; } .brand-icon { font-size: 24px; } .brand-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; color: var(--gold); line-height: 1.1; } .brand-sub { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; } .sidebar-toggle { background: none; border: none; color: var(--text-2); font-size: 20px; cursor: pointer; padding: 4px; border-radius: 4px; transition: all 0.2s ease; } .sidebar-toggle:hover { background: var(--navy-3); color: var(--text-1); } /* ── BUTTONS ── */ .btn-primary, .btn-secondary { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s ease; } .btn-primary { background: var(--gold-glow); border-color: var(--border-gold); color: var(--gold); } .btn-primary:hover { background: rgba(200,168,75,0.25); border-color: var(--gold); } .btn-secondary { background: transparent; color: var(--text-2); } .btn-secondary:hover { background: var(--navy-3); border-color: var(--border-gold); color: var(--text-1); transform: none; } /* ── SESSIONS ── */ .sessions-header { font-size: 9px; font-weight: 600; color: var(--text-3); letter-spacing: 1px; text-transform: uppercase; padding: 8px 0 4px; margin-top: 8px; } .sessions-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; } .sessions-empty { font-size: 12px; color: var(--text-3); font-style: italic; padding: 12px 8px; } .session-item { padding: 8px 10px; border-radius: 6px; background: transparent; border: 1px solid transparent; font-size: 12px; color: var(--text-2); cursor: pointer; transition: all 0.2s ease; } .session-item:hover { background: var(--navy-3); } .session-item.active { background: var(--navy-4); border-color: var(--border-gold); color: var(--text-1); } .sidebar-footer { padding-top: 12px; border-top: 1px solid var(--border); font-size: 10px; color: var(--text-3); line-height: 1.4; } .disclaimer { margin-bottom: 6px; } .meta { font-size: 9px; } /* ── MAIN CONTENT ── */ .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; } /* ── TOPBAR ── */ .topbar { height: 56px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex-shrink: 0; background: var(--navy); } .topbar-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: var(--text-1); } .status-pill { display: flex; align-items: center; gap: 6px; background: var(--navy-2); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 12px; color: var(--text-2); } .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); } .status-pill.loading .status-dot { background: var(--gold); animation: pulse 1s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } } /* ── SCREENS ── */ .screen { display: none; flex: 1; overflow: hidden; } .screen.active { display: flex; } /* ── WELCOME ── */ .welcome-container { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; } .welcome-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.7; } .welcome-container h2 { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 700; margin-bottom: 12px; color: var(--text-1); } .welcome-container > p { color: var(--text-2); margin-bottom: 32px; max-width: 600px; } .suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; max-width: 800px; } .suggestion { padding: 12px 14px; background: var(--navy-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text-2); font-family: 'DM Sans', sans-serif; font-size: 12px; cursor: pointer; text-align: left; line-height: 1.4; transition: all 0.2s ease; } .suggestion:hover { background: var(--navy-3); border-color: var(--border-gold); color: var(--text-1); } /* ── CHAT ── */ .chat-area { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 20px 0; } .messages { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 16px; } .message { display: flex; flex-direction: column; gap: 4px; animation: slideIn 0.3s ease; } @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message.user { align-items: flex-end; } .message.ai { align-items: flex-start; } .bubble { padding: 12px 16px; border-radius: 12px; max-width: 70%; word-wrap: break-word; overflow-wrap: break-word; font-size: 13px; line-height: 1.5; } .bubble.user { background: var(--navy-4); border: 1px solid var(--border); color: var(--text-1); } .bubble.ai { background: var(--navy-2); border: 1px solid var(--border); border-left: 3px solid var(--gold); color: var(--text-1); max-width: 85%; } .bubble p { margin-bottom: 8px; } .bubble p:last-child { margin-bottom: 0; } .bubble-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 10px; flex-wrap: wrap; } .badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px; font-weight: 600; } .badge.verified { background: rgba(76,175,130,0.15); color: var(--green); } .badge.unverified { background: rgba(224,82,82,0.15); color: #e8a060; } .sources-btn { background: var(--gold-glow); border: 1px solid var(--border-gold); color: var(--gold); padding: 2px 8px; border-radius: 12px; cursor: pointer; font-size: 10px; font-weight: 500; transition: all 0.2s ease; } .sources-btn:hover { background: rgba(200,168,75,0.25); } .bubble.loading { color: var(--text-3); } .dots { display: flex; gap: 4px; } .dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: bounce 1.2s infinite; } .dots span:nth-child(2) { animation-delay: 0.2s; } .dots span:nth-child(3) { animation-delay: 0.4s; } @keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.3; } 30% { transform: translateY(-6px); opacity: 1; } } /* ── ANALYTICS ── */ .analytics-container { flex: 1; overflow-y: auto; padding: 32px 24px; max-width: 1200px; margin: 0 auto; } .analytics-container h2 { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; margin-bottom: 8px; } .analytics-container > p { color: var(--text-2); margin-bottom: 24px; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 24px; } .stat-card { background: var(--navy-2); border: 1px solid var(--border); border-radius: 8px; padding: 16px 12px; text-align: center; } .stat-value { font-size: 20px; font-weight: 600; color: var(--gold); margin-bottom: 6px; } .stat-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; } /* ── INPUT ── */ .input-area { padding: 12px 20px 16px; background: linear-gradient(transparent, var(--navy) 30%); border-top: 1px solid var(--border); flex-shrink: 0; } .input-wrapper { display: flex; gap: 8px; background: var(--navy-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; transition: border-color 0.2s ease; max-width: 900px; margin: 0 auto; } .input-wrapper:focus-within { border-color: var(--border-gold); } .query-input { flex: 1; background: none; border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text-1); resize: none; max-height: 120px; line-height: 1.5; } .query-input::placeholder { color: var(--text-3); } .send-btn { width: 36px; height: 36px; background: var(--gold); border: none; border-radius: 6px; color: var(--navy); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s ease; } .send-btn:hover { background: #dbb95c; } .send-btn:disabled { background: var(--navy-4); color: var(--text-3); cursor: not-allowed; } .disclaimer-line { text-align: center; font-size: 10px; color: var(--text-3); margin-top: 6px; } /* ── RESPONSIVE ── */ @media (max-width: 768px) { .app-container { flex-direction: column; } .sidebar { width: 100%; max-height: 40vh; border-right: none; border-bottom: 1px solid var(--border); } .messages { padding: 0 16px; } .bubble { max-width: 90%; } .suggestions { grid-template-columns: 1fr; } }