/* ═══════════════════════════════════════════════════════════════ 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: 'Lora', serif; background: linear-gradient(135deg, #f4ede5 0%, #e8e0d8 100%); color: var(--text-dark); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; } /* ═════════════════════════════════════════ LAYOUT STRUCTURE ═════════════════════════════════════════ */ .app-container { display: flex; height: 100vh; overflow: hidden; background: #f4ede5; } /* ═════════════════════════════════════════ SIDEBAR / JUDICIAL REGISTRY PANEL ═════════════════════════════════════════ */ .sidebar { width: 280px; background: linear-gradient(180deg, #2c221a 0%, #1a1410 100%); border-right: 3px solid var(--seal-gold); display: flex; flex-direction: column; padding: 20px; gap: 16px; overflow-y: auto; transition: width 0.3s ease; color: #e8d7c3; box-shadow: inset -2px 0 8px rgba(0, 0, 0, 0.3); } .sidebar.collapsed { width: 70px; } .sidebar.collapsed .brand-text, .sidebar.collapsed .action-group, .sidebar.collapsed .registry-section, .sidebar.collapsed .sidebar-footer { display: none; } /* ── Judicial Seal Header ── */ .sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--border-gold); } .judicial-seal { width: 48px; height: 48px; color: var(--seal-gold); flex-shrink: 0; } .seal-svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3)); } .brand-text { flex: 1; } .brand-name { font-family: 'Crimson Text', serif; font-size: 18px; font-weight: 700; color: var(--seal-gold); letter-spacing: 2px; line-height: 1.1; } .brand-sub { font-size: 10px; color: #a89968; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; } .sidebar-toggle { background: none; border: 1px solid var(--border-gold); color: var(--seal-gold); font-size: 18px; cursor: pointer; padding: 6px 8px; border-radius: 4px; transition: all 0.2s ease; flex-shrink: 0; } .sidebar-toggle:hover { background: rgba(212, 175, 55, 0.1); border-color: var(--seal-gold); } /* ── Action Buttons ── */ .action-group { display: flex; flex-direction: column; gap: 8px; } .btn-primary, .btn-secondary { width: 100%; padding: 11px 14px; border-radius: 4px; border: 1px solid var(--border-gold); font-family: 'Lora', serif; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: all 0.2s ease; text-transform: uppercase; letter-spacing: 0.5px; } .btn-primary { background: linear-gradient(135deg, var(--seal-gold), #c9a535); border-color: var(--seal-gold); color: var(--text-dark); } .btn-primary:hover { background: linear-gradient(135deg, #e8c547, #d4af37); box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25); transform: translateY(-1px); } .btn-secondary { background: rgba(212, 175, 55, 0.08); color: #d4af37; } .btn-secondary:hover { background: rgba(212, 175, 55, 0.15); border-color: var(--seal-gold); } /* ── Case Registry ── */ .registry-section { flex: 1; display: flex; flex-direction: column; min-height: 200px; } .registry-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-top: 12px; } .registry-title { font-size: 10px; font-weight: 700; color: #a89968; text-transform: uppercase; letter-spacing: 1.5px; } .registry-divider { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--seal-gold), transparent); } .sessions-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; } .sessions-empty { font-size: 11px; color: #8b7f75; font-style: italic; padding: 12px 8px; text-align: center; } .session-item { padding: 10px 12px; border-radius: 3px; background: rgba(212, 175, 55, 0.05); border: 1px solid transparent; font-size: 12px; color: #d4cfc9; cursor: pointer; transition: all 0.2s ease; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .session-item:hover { background: rgba(212, 175, 55, 0.12); border-color: var(--border-gold); } .session-item.active { background: rgba(212, 175, 55, 0.2); border-color: var(--seal-gold); color: var(--seal-gold); } /* ── Sidebar Footer ── */ .sidebar-footer { padding-top: 16px; border-top: 1px solid var(--border-gold); text-align: center; } .court-info { margin-bottom: 12px; } .disclaimer { font-size: 10px; color: #d4a574; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; } .disclaimer-text { font-size: 9px; color: #a89968; line-height: 1.4; } .court-meta { font-size: 9px; color: #8b7f75; } .meta-text { margin: 1px 0; } /* ═════════════════════════════════════════ MAIN CONTENT AREA ═════════════════════════════════════════ */ .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #f4ede5; } /* ── Top Bar / Bench Header ── */ .topbar { height: 70px; border-bottom: 3px double var(--seal-gold); display: flex; align-items: center; justify-content: space-between; padding: 12px 32px; flex-shrink: 0; background: linear-gradient(180deg, #faf6f1 0%, #f4ede5 100%); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } .topbar-left { flex: 1; } .topbar-title { font-family: 'Crimson Text', serif; font-size: 28px; font-weight: 700; color: var(--text-dark); letter-spacing: 1px; } .topbar-subtitle { font-family: 'Lora', serif; font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; } .status-indicator { display: flex; align-items: center; gap: 8px; background: rgba(45, 93, 63, 0.1); border: 1px solid rgba(45, 93, 63, 0.3); border-radius: 3px; padding: 7px 14px; font-size: 11px; color: var(--verified-green); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verified-green); } .status-indicator.loading { background: rgba(212, 175, 55, 0.1); color: var(--seal-gold-dim); border-color: var(--border-gold); } .status-indicator.loading .status-dot { background: var(--seal-gold); animation: pulse 1.2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } /* ═════════════════════════════════════════ SCREEN SECTIONS ═════════════════════════════════════════ */ .screen { display: none; flex: 1; overflow: hidden; } .screen.active { display: flex; } /* ──────────────────────────────────────── WELCOME / RESEARCH INITIATION SCREEN ──────────────────────────────────────── */ .welcome-container { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 32px; text-align: center; overflow-y: auto; } .welcome-graphic { width: 120px; height: 120px; margin-bottom: 30px; color: var(--seal-gold); opacity: 0.8; } .welcome-icon { width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)); } .welcome-container h2 { font-family: 'Crimson Text', serif; font-size: 48px; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); letter-spacing: 2px; } .welcome-container > p { color: var(--text-medium); margin-bottom: 36px; max-width: 650px; font-size: 15px; line-height: 1.7; } .text-muted { font-size: 12px; color: var(--text-light); display: block; margin-top: 6px; } /* ── Suggestions Grid ── */ .suggestions { display: flex; flex-direction: column; gap: 12px; max-width: 750px; width: 100%; } .suggestion-label { font-size: 10px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.5px; text-align: left; margin-bottom: 6px; } .suggestion { padding: 14px 16px; background: #ffffff; border: 1px solid var(--border-dark); border-radius: 3px; color: var(--text-medium); font-family: 'Lora', serif; font-size: 13px; cursor: pointer; text-align: left; line-height: 1.5; transition: all 0.2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } .suggestion:hover { background: #faf6f1; border-color: var(--border-gold); color: var(--text-dark); box-shadow: 0 3px 8px rgba(212, 175, 55, 0.12); transform: translateY(-2px); } /* ──────────────────────────────────────── CHAT / PROCEEDINGS SCREEN ──────────────────────────────────────── */ .chat-area { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 24px 0; background: #f4ede5; } .proceedings { width: 100%; max-width: 950px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; gap: 20px; } .message { display: flex; flex-direction: column; gap: 6px; 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; } /* ── Speech Bubbles ── */ .bubble { padding: 16px 18px; border-radius: 2px; max-width: 75%; word-wrap: break-word; overflow-wrap: break-word; font-size: 13px; line-height: 1.6; border-left: 4px solid transparent; } .bubble.user { background: #e8dfd8; border-color: var(--neutral-gray); color: var(--text-dark); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); } .bubble.ai { background: #ffffff; border-color: var(--seal-gold); color: var(--text-dark); max-width: 85%; box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1); } .bubble p { margin-bottom: 10px; } .bubble p:last-child { margin-bottom: 0; } /* ── Bubble Metadata ── */ .bubble-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-dark); font-size: 10px; flex-wrap: wrap; } .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 2px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 9px; } .badge.verified { background: rgba(45, 93, 63, 0.15); color: var(--verified-green); border: 1px solid rgba(45, 93, 63, 0.3); } .badge.unverified { background: rgba(139, 62, 62, 0.15); color: var(--attention-red); border: 1px solid rgba(139, 62, 62, 0.3); } .sources-btn { background: rgba(212, 175, 55, 0.15); border: 1px solid var(--border-gold); color: var(--seal-gold-dim); padding: 3px 10px; border-radius: 2px; cursor: pointer; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s ease; } .sources-btn:hover { background: rgba(212, 175, 55, 0.25); border-color: var(--seal-gold); color: var(--seal-gold); } /* ── Loading State ── */ .bubble.loading { color: var(--text-light); } .dots { display: flex; gap: 5px; } .dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--seal-gold); animation: bounce 1.4s 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.4; } 30% { transform: translateY(-8px); opacity: 1; } } /* ──────────────────────────────────────── ANALYTICS DASHBOARD ──────────────────────────────────────── */ .analytics-container { flex: 1; overflow-y: auto; padding: 36px 32px; max-width: 1100px; margin: 0 auto; } .analytics-header h2 { font-family: 'Crimson Text', serif; font-size: 36px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); letter-spacing: 1px; } .analytics-header > p { color: var(--text-light); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 28px; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; } .stat-card { background: #ffffff; border: 1px solid var(--border-dark); border-radius: 3px; padding: 22px 16px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); transition: all 0.2s ease; } .stat-card:hover { box-shadow: 0 4px 12px rgba(212, 175, 55, 0.12); border-color: var(--border-gold); } .stat-icon { font-size: 28px; margin-bottom: 8px; opacity: 0.7; } .stat-value { font-family: 'Crimson Text', serif; font-size: 32px; font-weight: 700; color: var(--seal-gold); margin-bottom: 8px; } .stat-label { font-size: 10px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; } /* ──────────────────────────────────────── INPUT AREA / SUBMISSION BENCH ──────────────────────────────────────── */ .input-bench { padding: 16px 32px 24px; background: linear-gradient(transparent, rgba(244, 237, 229, 0.8) 40%, #f4ede5); border-top: 1px solid var(--border-dark); flex-shrink: 0; display: flex; gap: 12px; max-width: 950px; width: 100%; margin: 0 auto; } .query-input { flex: 1; background: #ffffff; border: 1px solid var(--border-dark); border-radius: 2px; outline: none; font-family: 'Lora', serif; font-size: 13px; color: var(--text-dark); padding: 12px 14px; resize: none; max-height: 100px; line-height: 1.5; transition: border-color 0.2s ease, box-shadow 0.2s ease; } .query-input:focus { border-color: var(--border-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); } .query-input::placeholder { color: var(--text-light); font-style: italic; } .btn-submit { padding: 12px 18px; background: linear-gradient(135deg, var(--seal-gold), #c9a535); border: 1px solid var(--seal-gold); border-radius: 2px; color: var(--text-dark); font-family: 'Lora', serif; font-size: 12px; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s ease; flex-shrink: 0; display: flex; align-items: center; gap: 6px; } .btn-submit:hover:not(:disabled) { background: linear-gradient(135deg, #e8c547, #d4af37); box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); transform: translateY(-1px); } .btn-submit:disabled { background: #d0ccc5; color: #a0a0a0; cursor: not-allowed; box-shadow: none; } /* ═════════════════════════════════════════ RESPONSIVE DESIGN ═════════════════════════════════════════ */ @media (max-width: 1024px) { .sidebar { width: 260px; } .topbar { padding: 12px 20px; } .topbar-title { font-size: 24px; } .welcome-container { padding: 40px 20px; } .proceedings { padding: 0 20px; } .input-bench { padding: 12px 20px 16px; } .analytics-container { padding: 24px 20px; } } @media (max-width: 768px) { .app-container { flex-direction: column; } .sidebar { width: 100%; max-height: 35vh; border-right: none; border-bottom: 3px solid var(--seal-gold); border-top: none; } .sidebar.collapsed { width: 100%; } .sidebar.collapsed .brand-text, .sidebar.collapsed .action-group, .sidebar.collapsed .registry-section, .sidebar.collapsed .sidebar-footer { display: flex; } .main-content { flex: 1; overflow: hidden; } .topbar { flex-direction: column; align-items: flex-start; gap: 8px; height: auto; padding: 12px 16px; } .topbar-title { font-size: 22px; } .status-indicator { align-self: flex-start; } .welcome-container { padding: 30px 16px; } .welcome-icon { width: 90px; height: 90px; } .welcome-container h2 { font-size: 32px; } .welcome-container > p { font-size: 13px; } .suggestions { max-width: 100%; } .suggestion { font-size: 12px; padding: 12px 14px; } .proceedings { padding: 0 16px; } .bubble { max-width: 90%; } .bubble.ai { max-width: 95%; } .input-bench { flex-direction: column; padding: 12px 16px 16px; max-width: 100%; } .query-input { width: 100%; } .btn-submit { width: 100%; justify-content: center; } .analytics-container { padding: 16px; } .stats-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 480px) { .sidebar { max-height: 30vh; } .topbar { padding: 10px 12px; } .topbar-title { font-size: 18px; } .topbar-subtitle { font-size: 9px; } .welcome-container { padding: 20px 12px; } .welcome-graphic { width: 80px; height: 80px; } .welcome-container h2 { font-size: 26px; } .welcome-container > p { font-size: 12px; } .suggestions { gap: 8px; } .suggestion { font-size: 11px; padding: 10px 12px; } .proceedings { padding: 0 12px; gap: 16px; } .bubble { padding: 12px 14px; font-size: 12px; max-width: 95%; } .stats-grid { grid-template-columns: 1fr; gap: 12px; } } /* ═════════════════════════════════════════ SCROLLBAR STYLING ═════════════════════════════════════════ */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.5); } /* ───────────────────────────────────────── PRINT STYLES ───────────────────────────────────────── */ @media print { .sidebar, .topbar, .input-bench, .status-indicator { display: none; } .main-content { width: 100%; } .proceedings { max-width: 100%; } .bubble { page-break-inside: avoid; } }