/* ============================================================
   Sanskriti Bot Dashboard — Global Styles
   Theme: Saffron / RSS Organizational
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Gujarati:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --saffron:       #FF6600;
  --saffron-light: #FF9933;
  --saffron-pale:  #fff3e0;
  --saffron-dark:  #cc5200;
  --navy:          #1a1a2e;
  --navy-mid:      #16213e;
  --navy-light:    #0f3460;
  --red-accent:    #e94560;
  --cream:         #f5f0e8;
  --cream-dark:    #ede8dc;
  --text-dark:     #2d2d2d;
  --text-mid:      #555;
  --text-light:    #888;
  --white:         #ffffff;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --info:          #3b82f6;
  --sidebar-w:     240px;
  --navbar-h:      60px;
  --radius:        10px;
  --shadow:        0 2px 12px rgba(0,0,0,0.10);
  --shadow-md:     0 4px 24px rgba(0,0,0,0.14);
  --transition:    0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans Gujarati', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* Gujarati text class */
.gu { font-family: 'Noto Sans Gujarati', sans-serif; }

a { color: var(--saffron); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; border: none; outline: none; }
input, textarea, select { outline: none; font-family: inherit; }
ul { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--saffron-light); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0f3460 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Decorative background pattern */
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,102,0,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,153,51,0.10) 0%, transparent 40%);
  pointer-events: none;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.login-logo {
  font-size: 56px;
  margin-bottom: 8px;
  line-height: 1;
}

.login-org-name {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--saffron-light);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.login-subtitle {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border-top: 4px solid var(--saffron);
  position: relative;
  z-index: 1;
}

.login-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0dbd0;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,102,0,0.12);
  background: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--saffron);
  color: var(--white);
  width: 100%;
  padding: 13px;
  font-size: 15px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover { background: var(--saffron-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: transparent;
  color: var(--saffron);
  border: 1.5px solid var(--saffron);
}
.btn-secondary:hover { background: var(--saffron-pale); }

.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-danger:hover { background: #dc2626; }

.btn-sm { padding: 6px 14px; font-size: 13px; }

.login-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  min-height: 18px;
}

.login-footer {
  margin-top: 28px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */

/* Top Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: var(--saffron);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.navbar-brand .flag { font-size: 24px; line-height: 1; }

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-brand-text .name {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.navbar-brand-text .sub {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-user {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  display: none;
}

@media (min-width: 640px) { .navbar-user { display: block; } }

.btn-logout {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition);
}
.btn-logout:hover { background: rgba(255,255,255,0.28); }

/* Hamburger (mobile) */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  margin-right: 10px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
@media (min-width: 768px) { .hamburger { display: none; } }

/* Sidebar */
.sidebar {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--navy);
  overflow-y: auto;
  z-index: 90;
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

/* Mobile: sidebar slides in/out */
@media (max-width: 767px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  }
  .sidebar.open { transform: translateX(0); }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 89;
}
.sidebar-overlay.active { display: block; }
@media (min-width: 768px) { .sidebar-overlay { display: none !important; } }

.sidebar-nav { padding: 16px 0; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  font-family: 'Noto Sans Gujarati', sans-serif;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border-left-color: var(--saffron-light);
}

.nav-item.active {
  color: var(--saffron-light);
  background: rgba(255,153,51,0.12);
  border-left-color: var(--saffron);
  font-weight: 600;
}

.nav-item .icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-align: center;
}

/* Main content area */
.main {
  margin-top: var(--navbar-h);
  min-height: calc(100vh - var(--navbar-h));
  padding: 28px;
  transition: margin-left var(--transition);
}

@media (min-width: 768px) {
  .main { margin-left: var(--sidebar-w); }
}

@media (max-width: 480px) {
  .main { padding: 16px; }
}

/* Section panels */
.section {
  display: none;
}
.section.active {
  display: block;
}

/* Page title */
.page-title {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title .icon { font-size: 24px; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--saffron);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-card:nth-child(2) { border-left-color: var(--saffron-light); }
.stat-card:nth-child(3) { border-left-color: var(--red-accent); }
.stat-card:nth-child(4) { border-left-color: #8b5cf6; }

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card:nth-child(2) .stat-number { color: var(--saffron-light); }
.stat-card:nth-child(3) .stat-number { color: var(--red-accent); }
.stat-card:nth-child(4) .stat-number { color: #8b5cf6; }

.stat-label {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
}

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body { padding: 16px 20px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.badge-bethak   { background: #fef3c7; color: #92400e; }
.badge-utsav    { background: #fce7f3; color: #9d174d; }
.badge-vrut     { background: #ede9fe; color: #5b21b6; }
.badge-mulyankan{ background: #d1fae5; color: #065f46; }
.badge-ayojan   { background: #dbeafe; color: #1e40af; }
.badge-shakha   { background: #ffedd5; color: #9a3412; }
.badge-general  { background: #f3f4f6; color: #374151; }

.badge-success  { background: #d1fae5; color: #065f46; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-info     { background: #dbeafe; color: #1e40af; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-in_progress { background: #dbeafe; color: #1e40af; }
.badge-done     { background: #d1fae5; color: #065f46; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th {
  background: var(--cream);
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid var(--cream-dark);
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--saffron-pale); }

.td-id { color: var(--text-light); font-size: 12px; font-family: monospace; }
.td-summary { max-width: 340px; }
.td-summary-text {
  font-family: 'Noto Sans Gujarati', sans-serif;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-date { white-space: nowrap; color: var(--text-mid); font-size: 12.5px; }

/* ============================================================
   SEARCH & FILTERS
   ============================================================ */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid #e0dbd0;
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--transition);
  font-family: 'Noto Sans Gujarati', sans-serif;
}

.search-input-wrap input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,102,0,0.10);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 16px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--cream-dark);
  background: var(--white);
  color: var(--text-mid);
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.filter-pill:hover { border-color: var(--saffron); color: var(--saffron); }
.filter-pill.active { background: var(--saffron); color: var(--white); border-color: var(--saffron); }

/* ============================================================
   EVENT LIST (Upcoming)
   ============================================================ */
.event-list { display: flex; flex-direction: column; gap: 10px; }

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--saffron);
  transition: transform var(--transition);
}
.event-item:hover { transform: translateX(3px); }

.event-date-block {
  flex-shrink: 0;
  text-align: center;
  min-width: 52px;
}

.event-date-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
}

.event-date-month {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-date-day {
  font-size: 10px;
  color: var(--text-light);
  font-family: 'Noto Sans Gujarati', sans-serif;
}

.event-info { flex: 1; min-width: 0; }

.event-name {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.event-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-days-pill {
  background: var(--saffron-pale);
  color: var(--saffron-dark);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Week group headers */
.week-header {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: 10px;
}

/* ============================================================
   REMINDER ITEMS
   ============================================================ */
.reminder-item {
  padding: 14px 18px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  border-left: 3px solid var(--saffron-light);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.reminder-info { flex: 1; min-width: 180px; }

.reminder-name {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.reminder-rule {
  font-size: 12px;
  color: var(--text-light);
  font-family: monospace;
}

.reminder-next {
  font-size: 12px;
  color: var(--text-mid);
  white-space: nowrap;
}

/* ============================================================
   VRUT / REPORTS
   ============================================================ */
.vrut-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.vrut-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background var(--transition);
}
.vrut-header:hover { background: var(--saffron-pale); }

.vrut-title {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

.vrut-date { font-size: 12px; color: var(--text-light); }
.vrut-chevron { font-size: 12px; color: var(--text-light); transition: transform var(--transition); }
.vrut-item.open .vrut-chevron { transform: rotate(90deg); }

.vrut-body {
  display: none;
  padding: 16px 18px;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
}
.vrut-item.open .vrut-body { display: block; }

.vrut-report-text {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-dark);
  white-space: pre-wrap;
}

/* ============================================================
   GOALS
   ============================================================ */
.goal-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-left: 3px solid transparent;
}

.goal-item[data-status="done"]        { border-left-color: var(--success); }
.goal-item[data-status="in_progress"] { border-left-color: var(--info); }
.goal-item[data-status="pending"]     { border-left-color: var(--warning); }

.goal-text {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark);
  flex: 1;
  line-height: 1.5;
}

.goal-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.goal-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ============================================================
   KNOWLEDGE (Brain)
   ============================================================ */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.knowledge-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px;
  border-top: 3px solid var(--saffron);
  transition: transform var(--transition);
}
.knowledge-card:hover { transform: translateY(-2px); }

.knowledge-card-name {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.knowledge-card-rule {
  font-family: monospace;
  font-size: 11.5px;
  background: var(--cream);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--saffron-dark);
  margin-bottom: 8px;
  display: inline-block;
}

.knowledge-card-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ============================================================
   ADD DATA SECTION
   ============================================================ */
.add-data-tabs {
  display: flex;
  gap: 4px;
  background: var(--cream-dark);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
  width: fit-content;
}

.add-tab {
  padding: 8px 20px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-mid);
  transition: all var(--transition);
  background: none;
  font-family: 'Noto Sans Gujarati', sans-serif;
}

.add-tab.active {
  background: var(--white);
  color: var(--saffron);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.add-panel { display: none; }
.add-panel.active { display: block; }

.textarea-lg {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  border: 1.5px solid #e0dbd0;
  border-radius: 10px;
  font-size: 14.5px;
  font-family: 'Noto Sans Gujarati', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  resize: vertical;
  line-height: 1.7;
  transition: border-color var(--transition);
}
.textarea-lg:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,102,0,0.10);
  background: var(--white);
}

/* OCR Drop Zone */
.drop-zone {
  border: 2.5px dashed var(--saffron-light);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--saffron-pale);
  position: relative;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--saffron);
  background: #fff8f2;
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-zone-icon { font-size: 40px; margin-bottom: 10px; }

.drop-zone-text {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 4px;
}

.drop-zone-hint { font-size: 12px; color: var(--text-light); }

/* Image preview */
.image-preview-wrap {
  display: none;
  margin-top: 16px;
}
.image-preview-wrap.show { display: block; }
.image-preview {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  object-fit: contain;
  border: 2px solid var(--cream-dark);
}

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0ece4 25%, #e8e3da 50%, #f0ece4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line:last-child { width: 60%; }

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-dark {
  border: 2.5px solid var(--cream-dark);
  border-top-color: var(--saffron);
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  pointer-events: auto;
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
  max-width: 340px;
  color: var(--white);
}

.toast-success { background: #16a34a; }
.toast-error   { background: #dc2626; }
.toast-info    { background: var(--navy-light); }
.toast-warning { background: #d97706; }

.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-msg  { flex: 1; font-family: 'Noto Sans Gujarati', sans-serif; line-height: 1.4; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(10px); }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-light);
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state-text {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 15px;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.ml-auto { margin-left: auto; }
.text-right { text-align: right; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11.5px; }
.text-light { color: var(--text-light); }
.text-mid { color: var(--text-mid); }
.font-mono { font-family: monospace; }
.font-gu { font-family: 'Noto Sans Gujarati', sans-serif; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.select-styled {
  padding: 9px 12px;
  border: 1.5px solid #e0dbd0;
  border-radius: 8px;
  font-size: 13.5px;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
}
.select-styled:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,102,0,0.10);
}

.divider {
  border: none;
  border-top: 1px solid var(--cream-dark);
  margin: 20px 0;
}

/* Category color coding in table */
.cat-bethak    { color: #92400e; }
.cat-utsav     { color: #9d174d; }
.cat-vrut      { color: #5b21b6; }
.cat-mulyankan { color: #065f46; }
.cat-ayojan    { color: #1e40af; }
.cat-shakha    { color: #9a3412; }

/* Recent entries in dashboard */
.entry-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.entry-row:last-child { border-bottom: none; }
.entry-row-info { flex: 1; min-width: 0; }
.entry-row-text {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 13.5px;
  color: var(--text-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-row-date {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 3px;
  white-space: nowrap;
}

/* Responsive table on mobile */
@media (max-width: 600px) {
  .hide-mobile { display: none; }
  .td-summary { max-width: 180px; }
}

/* Upcoming in dashboard widget */
.upcoming-mini-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.upcoming-mini-item:last-child { border-bottom: none; }
.upcoming-mini-date {
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}
.upcoming-mini-day { font-size: 20px; font-weight: 700; color: var(--saffron); line-height: 1; }
.upcoming-mini-mon { font-size: 10px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.upcoming-mini-name {
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  flex: 1;
}
.upcoming-mini-pill {
  font-size: 11px;
  color: var(--saffron-dark);
  background: var(--saffron-pale);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}

/* Dashboard two-column layout */
.dash-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .dash-two-col { grid-template-columns: 1fr 1fr; }
}
