/* Snapshot demo - Al-Imran look, no backend */
:root {
  --page-bg: #F5F7FA;
  --sidebar-bg: #F8F8F8;
  --card-bg: #fff;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --accent: #00BCD4;
  --nav-active-bg: #1a1a1a;
  --nav-active-color: #fff;
  --border: #e5e7eb;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--page-bg); color: var(--text-primary); min-height: 100vh; font-size: 15px; }
.app-layout { display: flex; min-height: 100vh; }
.app-sidebar { width: 240px; background: var(--sidebar-bg); border-right: 1px solid var(--border); padding: 1rem 0; flex-shrink: 0; }
.app-sidebar a { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; color: var(--text-primary); text-decoration: none; border-radius: 6px; margin: 0 0.5rem 2px; }
.app-sidebar a:hover { background: var(--border); }
.app-sidebar a.active { background: var(--nav-active-bg); color: var(--nav-active-color); }
.sidebar-section-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); padding: 0.75rem 1rem 0.25rem; }
.sidebar-logo-text { font-weight: 700; padding-left: 0.5rem; }
.app-main-wrap { flex: 1; padding: 1.5rem; }
.snapshot-banner { background: #fef3c7; color: #92400e; padding: 0.5rem 1rem; text-align: center; font-size: 0.9rem; border-bottom: 1px solid #fcd34d; }
.dashboard-welcome { margin-bottom: 1.5rem; }
.dashboard-welcome h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.dashboard-welcome p { color: var(--text-secondary); }
.dashboard-summary-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.summary-card { background: var(--card-bg); border-radius: 8px; padding: 1rem 1.25rem; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; align-items: center; gap: 1rem; min-width: 180px; }
.summary-card h3 { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.25rem; }
.summary-card .value { font-size: 1.25rem; font-weight: 600; }
.compact-section { background: var(--card-bg); border-radius: 8px; padding: 1.25rem; box-shadow: var(--shadow); border-left: 4px solid var(--accent); margin-bottom: 1rem; }
.compact-section h2 { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.table-responsive { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.results-table th, .results-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.results-table th { background: var(--page-bg); font-weight: 600; color: var(--text-secondary); }
.results-table tr:hover { background: rgba(0,0,0,0.02); }
.results-table a { color: var(--accent); text-decoration: none; }
.results-table a:hover { text-decoration: underline; }
.btn { display: inline-block; padding: 0.4rem 0.75rem; border-radius: 6px; font-size: 0.85rem; cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--border); color: var(--text-primary); }
.nav-links { margin-bottom: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.list-summary-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.list-summary { background: var(--page-bg); padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.9rem; }
.list-summary-label { color: var(--text-secondary); }
.list-summary-value { font-weight: 600; margin-left: 0.25rem; }

/* View (record detail) pages */
.record-category { margin-bottom: 1.25rem; }
.record-category-title { font-size: 0.9rem; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; margin-bottom: 0.5rem; }
.record-detail-table { width: 100%; max-width: 480px; border-collapse: collapse; font-size: 0.9rem; }
.record-detail-table th { text-align: left; padding: 0.4rem 0.75rem 0.4rem 0; color: var(--text-secondary); font-weight: 500; width: 40%; }
.record-detail-table td { padding: 0.4rem 0; }

/* Edit (form) pages */
.form-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.input-field { flex: 1; min-width: 160px; }
.input-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9em; color: var(--text-secondary); }
.input-field input, .input-field select, .input-field textarea { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; box-sizing: border-box; }
.input-field textarea { min-height: 80px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1.25rem; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
