/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --bg-body: #f7f5f0;
  --bg-card: #ffffff;
  --bg-card-hover: #fefefe;
  --bg-sidebar: #0f0f0e;
  --bg-topbar: #ffffff;
  --bg-input: #ffffff;
  --bg-skeleton: #edeae4;

  --text-primary: #1a1a18;
  --text-secondary: #6b6860;
  --text-tertiary: #9a9890;
  --text-sidebar: rgba(255,255,255,0.6);
  --text-sidebar-hover: #ffffff;

  --accent: #534AB7;
  --accent-hover: #4640a8;
  --accent-bg: rgba(83,74,183,0.08);
  --accent-border: rgba(83,74,183,0.2);
  --teal: #1D9E75;
  --teal-bg: #dcf5ec;
  --amber: #BA7517;
  --amber-bg: #fef3dc;
  --red: #E24B4A;
  --red-bg: #fde8e8;
  --blue: #185FA5;
  --blue-bg: #e0edf8;

  --border: rgba(0,0,0,0.07);
  --border-input: rgba(0,0,0,0.15);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-modal: 0 16px 48px rgba(0,0,0,0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --sidebar-w: 220px;
  --topbar-h: 56px;
}

[data-theme="dark"] {
  --bg-body: #111110;
  --bg-card: #1a1a19;
  --bg-card-hover: #222220;
  --bg-sidebar: #0a0a09;
  --bg-topbar: #161615;
  --bg-input: #1e1e1c;
  --bg-skeleton: #2a2a28;
  --text-primary: #e8e6e0;
  --text-secondary: #9a9890;
  --text-tertiary: #6b6860;
  --border: rgba(255,255,255,0.08);
  --border-input: rgba(255,255,255,0.15);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.2);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.3);
  --accent-bg: rgba(83,74,183,0.15);
  --teal-bg: #0d2e22; --amber-bg: #2e1f08; --red-bg: #2e0e0e; --blue-bg: #0a1e35;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font); background: var(--bg-body); color: var(--text-primary); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: white; }

/* ─── Layout ─── */
.app-shell { display: flex; height: 100vh; background: var(--bg-body); }
.sidebar { width: var(--sidebar-w); background: var(--bg-sidebar); display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-logo { height: 56px; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sidebar-logo-name { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -0.3px; }
.sidebar-logo-sub { color: var(--text-tertiary); font-size: 10px; font-weight: 500; letter-spacing: 0.04em; margin-top: 1px; }
.sidebar-group { padding: 16px 0 4px; }
.sidebar-group-label { padding: 0 16px 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); }
.sidebar-link { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; margin: 1px 8px; font-size: 13px; font-weight: 400; color: var(--text-sidebar); border-radius: 7px; cursor: pointer; transition: all 0.12s ease; border-left: 3px solid transparent; }
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: var(--text-sidebar-hover); }
.sidebar-link.active { background: var(--accent-border); color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
.main-area { flex: 1 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar { height: var(--topbar-h); background: var(--bg-topbar); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex-shrink: 0; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.content { flex: 1 1; overflow-y: auto; padding: 28px 32px; }

/* ─── Cards ─── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); transition: all 0.15s ease; }
.card:hover { box-shadow: var(--shadow-hover); }
.card-interactive { cursor: pointer; }
.card-interactive:hover { transform: translateY(-1px); }

/* ─── Badges ─── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-green { background: var(--teal-bg); color: var(--teal); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-purple { background: var(--accent-bg); color: var(--accent); }
.badge-grey { background: var(--bg-skeleton); color: var(--text-secondary); }
.badge-pulse::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ─── Inputs ─── */
.input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border-input); border-radius: 8px; font-size: 13px; font-family: var(--font); background: var(--bg-input); color: var(--text-primary); outline: none; transition: all 0.15s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(83,74,183,0.12); }
.input::placeholder { color: var(--text-tertiary); }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input { cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239a9890' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 8px; font-size: 13px; font-weight: 500; font-family: var(--font); cursor: pointer; transition: all 0.12s ease; line-height: 1; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn-md { height: 36px; padding: 0 16px; }
.btn-lg { height: 40px; padding: 0 20px; font-size: 15px; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-input); }
.btn-secondary:hover { background: var(--bg-body); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--accent-bg); color: var(--accent); }

/* ─── Tables ─── */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); border-bottom: 1px solid var(--border); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table tr { transition: background 0.1s; }
.table tbody tr:hover { background: var(--accent-bg); }

/* ─── Modal ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; animation: fadeIn 0.15s ease; }
.modal { background: var(--bg-card); border-radius: var(--radius-lg); min-width: 440px; max-width: 560px; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-modal); animation: modalIn 0.2s ease-out; }
.modal-header { padding: 24px 24px 0; }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.modal-body { padding: 20px 24px; }
.modal-section { margin-bottom: 20px; }
.modal-section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin-bottom: 10px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* ─── Tabs ─── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab { padding: 10px 16px; font-size: 13px; font-weight: 400; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-secondary); transition: all 0.12s; }
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

/* ─── KPI ─── */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); grid-gap: 16px; gap: 16px; margin-bottom: 28px; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); }
.kpi-value { font-size: 28px; font-weight: 700; margin-top: 6px; letter-spacing: -0.5px; }
.kpi-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ─── Split view ─── */
.split-view { display: grid; grid-template-columns: 340px 1fr; grid-gap: 0; gap: 0; height: calc(100vh - var(--topbar-h) - 56px); margin: -28px -32px; }
.split-list { overflow-y: auto; border-right: 1px solid var(--border); background: var(--bg-card); }
.split-detail { overflow-y: auto; padding: 28px 32px; }
.split-item { padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: all 0.1s; }
.split-item:hover { background: var(--accent-bg); }
.split-item.active { background: var(--accent-bg); border-left: 3px solid var(--accent); }

/* ─── Status ─── */
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.green { background: var(--teal); }
.status-dot.grey { background: var(--text-tertiary); }
.status-dot.red { background: var(--red); }
.status-dot.amber { background: var(--amber); }
.status-dot.pulse { animation: pulse 2s infinite; }

/* ─── Kanban ─── */
.kanban { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { min-width: 280px; flex: 1 1; }
.kanban-col-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); padding: 8px 0; }

/* ─── Skeleton ─── */
.skeleton { background: var(--bg-skeleton); border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ─── Progress ─── */
.progress-bar { height: 6px; background: var(--bg-skeleton); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }

/* ─── File upload ─── */
.file-upload { border: 2px dashed var(--border-input); border-radius: var(--radius-md); padding: 32px; text-align: center; cursor: pointer; transition: all 0.15s; color: var(--text-secondary); }
.file-upload:hover { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }

/* ─── Utilities ─── */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { font-size: 24px; font-weight: 600; letter-spacing: -0.3px; }
.section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin-bottom: 12px; }
.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar .input, .filter-bar select.input { width: auto; min-width: 150px; height: 34px; font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 16px; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 16px; gap: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-sm { font-size: 12px; } .text-xs { font-size: 11px; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-mono { font-family: var(--font-mono); font-size: 12px; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.color-accent { color: var(--accent); } .color-teal { color: var(--teal); } .color-amber { color: var(--amber); } .color-red { color: var(--red); } .color-blue { color: var(--blue); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text-tertiary); text-align: center; }
.empty-state-title { font-size: 16px; font-weight: 500; color: var(--text-secondary); margin-top: 16px; }
.empty-state-sub { font-size: 13px; max-width: 280px; margin-top: 6px; line-height: 1.5; }
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 18px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; color: #fff; box-shadow: var(--shadow-hover); animation: modalIn 0.2s ease-out; }
.toast-success { background: var(--teal); } .toast-error { background: var(--red); } .toast-warning { background: var(--amber); }

