/* Raselni overrides for the upstream Gentelella design system. */
@font-face { font-family: Cairo; src: url('/admin/brand/Cairo.ttf') format('truetype'); font-display: swap; }
:root {
  --font: Cairo, Arial, sans-serif;
  --primary: #173B63;
  --primary-dk: #102C4B;
  --primary-lt: #EAF1F8;
  --body-bg: #F8FAFC;
  --text: #173B63;
  --sidebar-bg: #173B63;
  --sidebar-active: #20B7AD26;
  --sidebar-text: #CDDFEF;
}
[data-theme="dark"] { --primary-lt: #173B6340; --body-bg: #101D2C; }
.raselni-logo { width: 168px; height: 56px; object-fit: contain; }
.auth-brand { flex-direction: column; gap: 6px; }
.auth-brand small { color: var(--text-muted); }
.sidebar-brand { background: #F8FAFC; justify-content: center; }
.nav-link.active { border-inline-start-color: #20B7AD !important; }

[hidden] {
  display: none !important;
}
button,
input {
  font-family: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.auth-title,
.page-title {
  line-height: 1.6;
}
.auth-subtitle {
  line-height: 1.9;
}
.login-submit {
  width: 100%;
  height: 40px;
  justify-content: center;
  margin-top: 8px;
}
.login-notice:empty,
#notice:empty {
  display: none;
}
.login-notice,
#notice {
  background: var(--red-lt);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  line-height: 1.8;
}
.nav-link {
  width: 100%;
  font-family: inherit;
  text-align: start;
  border: 0;
  background: transparent;
}
.nav-link.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-active);
  border-inline-start: 3px solid var(--primary);
}
.nav-link [data-icon] {
  display: flex;
  flex-shrink: 0;
}
.sidebar-user-info strong {
  font-size: 12px;
  color: var(--sidebar-text-active);
}
.sidebar-user-info small {
  display: block;
  color: var(--sidebar-text);
  font-size: 11px;
  margin-top: 4px;
}
.admin-avatar {
  color: var(--primary);
  background: var(--primary-lt);
  border: 1px solid var(--sidebar-border);
}
.page-description {
  color: var(--text-muted);
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.8;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-content {
  min-width: 0;
}
.stat-value {
  font-variant-numeric: tabular-nums;
}
.overview-panel {
  margin-bottom: 20px;
}
.overview-status {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.9;
}
.overview-status p {
  margin: 0;
}
.overview-status .status-dot {
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
}
.overview-status.running .status-dot {
  background: var(--green);
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.table-card {
  margin-bottom: 20px;
}
.table-card table {
  width: 100%;
}
td,
th {
  text-align: start;
}
td {
  max-width: 360px;
  overflow-wrap: anywhere;
}
.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 160px;
}
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
  margin: 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar input {
  max-width: 360px;
  width: 100%;
}
.data-caption {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.account-dialog {
  padding: 24px;
  max-width: 850px;
  width: calc(100% - 32px);
  max-height: 85vh;
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.account-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 18px;
}
pre {
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 16px;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 24px;
  }
  .page-header-row {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .topbar-right .badge {
    display: none;
  }
}
.mono {
  font-family: var(--font-mono, monospace);
}

[dir="rtl"] .auth-brand { flex-direction: column; align-items: center; justify-content: center; width: 100%; }
[dir="rtl"] .sidebar-brand { justify-content: center; }
.auth-page { background: radial-gradient(ellipse at 20% 30%, #20B7AD0C, transparent 65%), var(--body-bg); }
