/**
 * TailAdmin - Satoshi Font + Custom CSS
 * Based on TailAdmin Free v1.3.1 — MIT License
 * Copyright (c) 2023 TailAdmin — https://tailadmin.com
 * Fuente: Satoshi by Deni Anggara / Indian Type Foundry
 */

/* ── Satoshi @font-face ─────────────────────────────────────────────────────── */
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Light.woff2") format("woff2"),
       url("../fonts/Satoshi-Light.woff") format("woff"),
       url("../fonts/Satoshi-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-LightItalic.woff2") format("woff2"),
       url("../fonts/Satoshi-LightItalic.woff") format("woff"),
       url("../fonts/Satoshi-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2"),
       url("../fonts/Satoshi-Regular.woff") format("woff"),
       url("../fonts/Satoshi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Italic.woff2") format("woff2"),
       url("../fonts/Satoshi-Italic.woff") format("woff"),
       url("../fonts/Satoshi-Italic.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2"),
       url("../fonts/Satoshi-Medium.woff") format("woff"),
       url("../fonts/Satoshi-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-MediumItalic.woff2") format("woff2"),
       url("../fonts/Satoshi-MediumItalic.woff") format("woff"),
       url("../fonts/Satoshi-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2"),
       url("../fonts/Satoshi-Bold.woff") format("woff"),
       url("../fonts/Satoshi-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-BoldItalic.woff2") format("woff2"),
       url("../fonts/Satoshi-BoldItalic.woff") format("woff"),
       url("../fonts/Satoshi-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Black.woff2") format("woff2"),
       url("../fonts/Satoshi-Black.woff") format("woff"),
       url("../fonts/Satoshi-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
  font-style: normal;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Satoshi', 'Inter', sans-serif;
  background-color: #F1F5F9;
  color: #334155;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.dark body {
  background-color: #1A222C;
  color: #AEB7C0;
}

/* ── No-scrollbar utility ────────────────────────────────────────────────────*/
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── TailAdmin table checkbox ─────────────────────────────────────────────── */
.tableCheckbox:checked ~ div span { opacity: 1; }
.tableCheckbox:checked ~ div { border-color: #3C50E0; background-color: #3C50E0; }

/* ── Drop shadow helpers ──────────────────────────────────────────────────── */
.drop-shadow-1 { filter: drop-shadow(0px 1px 0px #E2E8F0); }
.dark .drop-shadow-1 { filter: none; }

/* ── Switcher/toggle ─────────────────────────────────────────────────────── */
.shadow-switcher { box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15); }

/* ── Custom scrollbar for sidebar ────────────────────────────────────────── */
.ta-sidebar::-webkit-scrollbar { width: 4px; }
.ta-sidebar::-webkit-scrollbar-track { background: transparent; }
.ta-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ── Page content cards ─────────────────────────────────────────────────── */
.ta-card {
  border-radius: 2px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  padding: 1.875rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.dark .ta-card {
  border-color: #2E3A47;
  background: #24303F;
}

/* ── Status badges ──────────────────────────────────────────────────────── */
.badge-success { display:inline-flex; align-items:center; background:#DCFCE7; color:#166534; font-size:.75rem; font-weight:600; padding:.2rem .65rem; border-radius:9999px; }
.badge-danger  { display:inline-flex; align-items:center; background:#FEE2E2; color:#991B1B; font-size:.75rem; font-weight:600; padding:.2rem .65rem; border-radius:9999px; }
.badge-warning { display:inline-flex; align-items:center; background:#FEF9C3; color:#854D0E; font-size:.75rem; font-weight:600; padding:.2rem .65rem; border-radius:9999px; }
.badge-info    { display:inline-flex; align-items:center; background:#DBEAFE; color:#1E40AF; font-size:.75rem; font-weight:600; padding:.2rem .65rem; border-radius:9999px; }
.badge-gray    { display:inline-flex; align-items:center; background:#F1F5F9; color:#475569; font-size:.75rem; font-weight:600; padding:.2rem .65rem; border-radius:9999px; }

/* ── Table base ─────────────────────────────────────────────────────────── */
.ta-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ta-table th { padding: .875rem 1rem; text-align: left; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #64748B; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; }
.ta-table td { padding: .875rem 1rem; border-bottom: 1px solid #E2E8F0; color: #334155; vertical-align: middle; }
.ta-table tbody tr:hover { background: #F8FAFC; }
.dark .ta-table th { background: #313D4A; color: #AEB7C0; border-color: #2E3A47; }
.dark .ta-table td { border-color: #2E3A47; color: #DEE4EE; }
.dark .ta-table tbody tr:hover { background: #313D4A; }

/* ── Form inputs ────────────────────────────────────────────────────────── */
.ta-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: transparent;
  padding: 1rem 1.5rem;
  outline: none;
  font-family: inherit;
  font-size: .9rem;
  color: #1C2434;
  transition: border-color .2s;
}
.ta-input:focus { border-color: #3C50E0; box-shadow: 0 0 0 3px rgba(60,80,224,.12); }
.dark .ta-input { border-color: #3d4d60; background: #1d2a39; color: #DEE4EE; }
.dark .ta-input:focus { border-color: #3C50E0; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.ta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
  font-family: inherit;
}
.ta-btn-primary { background: #3C50E0; color: #fff; }
.ta-btn-primary:hover { background: #3347c8; }
.ta-btn-outline { background: transparent; color: #3C50E0; border: 1px solid #3C50E0; }
.ta-btn-outline:hover { background: #EEF0FC; }
.ta-btn-danger  { background: #D34053; color: #fff; }
.ta-btn-danger:hover { background: #b93244; }
.ta-btn-sm { padding: .35rem .85rem; font-size: .8rem; }

/* ── Alerts / Notifications ─────────────────────────────────────────────── */
.ta-alert { padding: .875rem 1.25rem; border-radius: 8px; margin-bottom: 1rem; display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem; }
.ta-alert-success { background: #DCFCE7; color: #166534; border-left: 4px solid #10B981; }
.ta-alert-danger  { background: #FEE2E2; color: #991B1B; border-left: 4px solid #DC3545; }
.ta-alert-warning { background: #FEF9C3; color: #854D0E; border-left: 4px solid #FFBA00; }
.ta-alert-info    { background: #DBEAFE; color: #1E40AF; border-left: 4px solid #259AE6; }

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.ta-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.ta-breadcrumb a { color: #64748B; text-decoration: none; }
.ta-breadcrumb a:hover { color: #3C50E0; }
.ta-breadcrumb .current { color: #3C50E0; font-weight: 500; }
.ta-breadcrumb .sep { color: #94A3B8; }

/* ── KPI stat cards ─────────────────────────────────────────────────────── */
.ta-stat-card {
  border-radius: 2px;
  border: 1px solid #E2E8F0;
  background: #fff;
  padding: 1.875rem 1.875rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.dark .ta-stat-card { background: #24303F; border-color: #2E3A47; }
.ta-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 9999px;
  background: #EFF2F7;
}
.dark .ta-stat-icon { background: #313D4A; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.ta-pagination { display: flex; align-items: center; gap: .25rem; }
.ta-page-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 6px; font-size: .875rem; font-weight: 500; text-decoration: none; color: #475569; border: 1px solid #E2E8F0; transition: all .15s; }
.ta-page-btn:hover { background: #EFF4FB; border-color: #3C50E0; color: #3C50E0; }
.ta-page-btn.active { background: #3C50E0; border-color: #3C50E0; color: #fff; }
.dark .ta-page-btn { color: #AEB7C0; border-color: #2E3A47; }
.dark .ta-page-btn:hover, .dark .ta-page-btn.active { background: #3C50E0; border-color: #3C50E0; color: #fff; }

/* ── Modals ─────────────────────────────────────────────────────────────── */
.ta-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ta-modal { background: #fff; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.2); width: 100%; max-width: 520px; overflow: hidden; }
.ta-modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid #E2E8F0; display: flex; align-items: center; justify-content: space-between; }
.ta-modal-title { font-weight: 700; font-size: 1.05rem; color: #1C2434; }
.ta-modal-body { padding: 1.5rem; }
.ta-modal-footer { padding: 1rem 1.5rem; border-top: 1px solid #E2E8F0; display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.dark .ta-modal { background: #24303F; }
.dark .ta-modal-header, .dark .ta-modal-footer { border-color: #2E3A47; }
.dark .ta-modal-title { color: #DEE4EE; }

/* ── Select ─────────────────────────────────────────────────────────────── */
.ta-select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: transparent;
  padding: .75rem 1.25rem;
  outline: none;
  font-family: inherit;
  font-size: .9rem;
  color: #1C2434;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  padding-right: 2.5rem;
}
.ta-select:focus { border-color: #3C50E0; }
.dark .ta-select { border-color: #3d4d60; background-color: #1d2a39; color: #DEE4EE; }

/* ── Textarea ───────────────────────────────────────────────────────────── */
.ta-textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: transparent;
  padding: .875rem 1.25rem;
  outline: none;
  font-family: inherit;
  font-size: .9rem;
  color: #1C2434;
  resize: vertical;
  transition: border-color .2s;
}
.ta-textarea:focus { border-color: #3C50E0; }
.dark .ta-textarea { border-color: #3d4d60; background: #1d2a39; color: #DEE4EE; }

/* ── Label ──────────────────────────────────────────────────────────────── */
.ta-label { display: block; margin-bottom: .625rem; font-weight: 500; color: #1C2434; font-size: .9rem; }
.dark .ta-label { color: #DEE4EE; }
