/* ============================================================
   SIAP - Design System & Global Styles
   Mobile-First, Warm Light Theme
   Palette: #E4DBBF · #DC5B21 · #70AB8F · #383127
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand Colors */
  --cream: #E4DBBF;
  /* krem - background utama */
  --orange: #DC5B21;
  /* oranye - primary */
  --orange-dark: #b84a1a;
  --orange-light: #e8845c;
  --green: #70AB8F;
  /* hijau sage - accent */
  --green-dark: #528a70;
  --brown: #383127;
  /* cokelat gelap - teks */

  --primary: var(--orange);
  --primary-dark: var(--orange-dark);
  --primary-light: var(--orange-light);
  --accent: var(--green);

  /* Pillar Colors */
  --pillar-1: #DC5B21;
  --pillar-2: #70AB8F;
  --pillar-3: #C4941A;
  --pillar-4: #A07848;

  /* Backgrounds - LIGHT THEME */
  --bg: #E4DBBF;
  /* background utama - krem */
  --bg-card: #F2ECDA;
  /* kartu - krem terang */
  --bg-card-hover: #F8F4EA;
  --bg-input: #EDE5CE;
  --border: #C8BAA0;
  --border-soft: #D4C8B0;

  /* Text - DARK on LIGHT */
  --text: #383127;
  /* cokelat gelap */
  --text-muted: #5C4D3A;
  --text-faint: #8A7660;

  /* Status Colors */
  --success: #3d8f6e;
  --warning: #b07b10;
  --danger: #b33820;
  --info: #3a7a9a;

  /* Layout */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(56, 49, 39, 0.12);
  --shadow-sm: 0 2px 8px rgba(56, 49, 39, 0.08);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 64px;
  --bottom-nav-h: 68px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  color: var(--orange-dark);
}

img {
  max-width: 100%;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ── Layout ── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 24px 16px calc(var(--bottom-nav-h) + 24px);
  max-width: 100%;
}

@media (min-width: 768px) {
  .main-content {
    margin-left: 240px;
    padding: 32px 32px 32px;
  }
}

/* ── Top Bar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 16px;
  background: rgba(228, 219, 191, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.topbar-brand .badge {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--primary);
  color: white;
  text-transform: uppercase;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.avatar-sm {
  width: 28px;
  height: 28px;
}

.avatar-lg {
  width: 72px;
  height: 72px;
}

.avatar-xl {
  width: 96px;
  height: 96px;
}

/* ── Sidebar (desktop) ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #383127;
  border-right: none;
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: var(--transition);
  box-shadow: 4px 0 20px rgba(56, 49, 39, 0.15);
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(228, 219, 191, 0.15);
}

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #e8845c, #E4DBBF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.sidebar-subtitle {
  font-size: 0.65rem;
  color: rgba(228, 219, 191, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(228, 219, 191, 0.4);
  padding: 8px 8px 4px;
  margin-top: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(228, 219, 191, 0.65);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(220, 91, 33, 0.18);
  color: #e8845c;
}

.nav-item.active {
  background: rgba(220, 91, 33, 0.25);
  color: #e8845c;
  font-weight: 600;
}

.nav-item .nav-icon {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(228, 219, 191, 0.15);
}

@media (max-width: 767px) {
  .sidebar {
    display: none;
  }
}

/* ── Bottom Navigation (mobile) ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: rgba(242, 236, 218, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(56, 49, 39, 0.08);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: var(--transition);
  text-decoration: none;
  min-width: 56px;
}

.bottom-nav-item .icon {
  font-size: 1.4rem;
}

.bottom-nav-item.active {
  color: var(--orange);
}

.bottom-nav-item:hover {
  color: var(--orange);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(220, 91, 33, 0.3);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Pillar Cards ── */
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.pillar-card.p-identitas::before {
  background: var(--pillar-1);
}

.pillar-card.p-kualifikasi::before {
  background: var(--pillar-2);
}

.pillar-card.p-kinerja::before {
  background: var(--pillar-3);
}

.pillar-card.p-pengembangan::before {
  background: var(--pillar-4);
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 49, 39, 0.12);
}

.pillar-card.p-identitas:hover {
  border-color: rgba(220, 91, 33, 0.45);
}

.pillar-card.p-kualifikasi:hover {
  border-color: rgba(112, 171, 143, 0.45);
}

.pillar-card.p-kinerja:hover {
  border-color: rgba(196, 148, 26, 0.45);
}

.pillar-card.p-pengembangan:hover {
  border-color: rgba(160, 120, 72, 0.45);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.pillar-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Progress Bar ── */
.progress-wrap {
  width: 100%;
  background: rgba(56, 49, 39, 0.08);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.progress-bar.p-identitas {
  background: linear-gradient(90deg, #DC5B21, #e8845c);
}

.progress-bar.p-kualifikasi {
  background: linear-gradient(90deg, #70AB8F, #9ecbb5);
}

.progress-bar.p-kinerja {
  background: linear-gradient(90deg, #C4941A, #ddb048);
}

.progress-bar.p-pengembangan {
  background: linear-gradient(90deg, #A07848, #c49a6a);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.progress-pct {
  font-weight: 700;
  font-size: 0.85rem;
}

.pct-identitas {
  color: #b84a1a;
}

.pct-kualifikasi {
  color: #3d8f6e;
}

.pct-kinerja {
  color: #b07b10;
}

.pct-pengembangan {
  color: #7a5830;
}

/* ── Overall Progress Ring ── */
.progress-ring-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(220, 91, 33, 0.08), rgba(112, 171, 143, 0.08));
  border: 1px solid rgba(220, 91, 33, 0.2);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.ring-svg {
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(56, 49, 39, 0.1);
}

.ring-fill {
  fill: none;
  stroke: url(#ringGradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-label {
  text-align: center;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-wrap {
  position: relative;
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: white;
}

.btn-accent {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
}

.btn-accent:hover {
  opacity: 0.88;
  color: white;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(220, 91, 33, 0.06);
}

.btn-danger {
  background: #b33820;
  color: white;
  border-color: #b33820;
}

.btn-danger:hover {
  background: #962e1a;
  color: white;
}

.btn-success {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.btn-success:hover {
  background: var(--green-dark);
  color: white;
}

.btn-wa {
  background: #25d366;
  color: white;
}

.btn-wa:hover {
  background: #1daa52;
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* ── Forms ── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(220, 91, 33, 0.15);
}

.form-control::placeholder {
  color: var(--text-faint);
}

select.form-control {
  cursor: pointer;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 5px;
}

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--orange);
  background: rgba(220, 91, 33, 0.05);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.upload-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.upload-subtext {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ── Document List Item ── */
.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.doc-item:hover {
  border-color: rgba(220, 91, 33, 0.3);
  box-shadow: var(--shadow-sm);
}

.doc-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(220, 91, 33, 0.1);
}

.doc-thumb.pdf-thumb {
  background: rgba(179, 56, 32, 0.12);
}

.doc-thumb.img-thumb {
  background: rgba(112, 171, 143, 0.15);
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-meta {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 2px;
}

.doc-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Status Badges ── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-done {
  background: rgba(61, 143, 110, 0.15);
  color: #2e7a5c;
}

.badge-missing {
  background: rgba(179, 56, 32, 0.12);
  color: #963020;
}

.badge-wajib {
  background: rgba(176, 123, 16, 0.12);
  color: #8f6510;
}

.badge-opsional {
  background: rgba(90, 75, 55, 0.1);
  color: #6a5a45;
}

.badge-admin {
  background: rgba(220, 91, 33, 0.12);
  color: #b84a1a;
}

.badge-guru {
  background: rgba(112, 171, 143, 0.15);
  color: #3d8f6e;
}

/* ── Alerts / Flash ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success {
  background: rgba(112, 171, 143, 0.15);
  border: 1px solid rgba(112, 171, 143, 0.35);
  color: #2e7a5c;
}

.alert-danger {
  background: rgba(179, 56, 32, 0.1);
  border: 1px solid rgba(179, 56, 32, 0.3);
  color: #963020;
}

.alert-info {
  background: rgba(58, 122, 154, 0.1);
  border: 1px solid rgba(58, 122, 154, 0.3);
  color: #2e6a88;
}

.alert-warning {
  background: rgba(176, 123, 16, 0.1);
  border: 1px solid rgba(176, 123, 16, 0.3);
  color: #8f6510;
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead tr {
  border-bottom: 2px solid var(--border);
}

th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  white-space: nowrap;
  background: rgba(56, 49, 39, 0.03);
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
  vertical-align: middle;
}

tr:hover td {
  background: rgba(220, 91, 33, 0.03);
}

/* ── Stat Cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ── Page Header ── */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Grids ── */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.doc-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(ellipse at 30% 20%, rgba(220, 91, 33, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(112, 171, 143, 0.1) 0%, transparent 60%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(56, 49, 39, 0.18);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .logo-text {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  line-height: 1;
}

.login-logo .logo-sub {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(56, 49, 39, 0.45);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 20px 60px rgba(56, 49, 39, 0.2);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Utilities ── */
.mt-1 {
  margin-top: 4px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.p-0 {
  padding: 0;
}

.gap-2 {
  gap: 8px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-muted {
  color: var(--text-muted);
}

.text-faint {
  color: var(--text-faint);
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.rounded {
  border-radius: var(--radius-sm);
}

.hidden {
  display: none !important;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Animations ── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 1.5s infinite;
}

/* Section spacer */
.section {
  margin-bottom: 24px;
}

/* File type icon colors */
.icon-pdf {
  color: #b33820;
}

.icon-img {
  color: #3d8f6e;
}

.icon-doc {
  color: #3a7a9a;
}