/*!*************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************/
/* ========================================================================
   Design system — Shopee Automation dashboard
   ======================================================================== */

:root {
  --orange: #ee4d2d;
  --orange-dark: #d6431f;
  --orange-light: #fff5f1;
  --orange-border: #ffd9cf;
  --red: #d0011b;
  --red-light: #fff5f5;
  --green: #1f8a3a;
  --green-light: #f1faf3;
  --yellow: #f2c94c;
  --yellow-light: #fffbf0;
  --blue: #2563eb;
  --blue-light: #eff6ff;

  --text: #1a1a1a;
  --text-muted: #525252;
  --text-light: #8a8a8a;
  --text-faded: #b0b0b0;

  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --bg-subtle: #fafafa;

  --border: #e5e5ea;
  --border-strong: #d2d2d7;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --sidebar-width: 240px;
  --header-height: 56px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

button {
  font-family: inherit;
}

/* ========================================================================
   Shell layout
   ======================================================================== */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

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

.sidebar-brand-text strong {
  font-size: 14px;
  font-weight: 600;
}

.sidebar-brand-text span {
  font-size: 11px;
  color: var(--text-light);
}

.sidebar-section {
  margin-bottom: 16px;
}

.sidebar-section-label {
  padding: 0 10px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}

.sidebar-link:hover {
  background: var(--bg);
  color: var(--text);
}

.sidebar-link.active {
  background: var(--orange-light);
  color: var(--orange-dark);
  font-weight: 600;
}

.sidebar-link .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-light);
  padding-left: 10px;
}

.app-main {
  padding: 24px 32px 48px;
  max-width: 1280px;
  width: 100%;
}

/* ========================================================================
   Page header
   ======================================================================== */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-header-text h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.page-header-text p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ========================================================================
   Card
   ======================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

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

.card-title {
  font-size: 14px;
  font-weight: 600;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.card-body {
  padding: 20px;
}

.card-body-flush {
  padding: 0;
}

.card + .card {
  margin-top: 16px;
}

/* ========================================================================
   Buttons
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s,
    box-shadow 0.12s;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:not(:disabled):hover {
  background: var(--orange-dark);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:not(:disabled):hover {
  background: var(--bg);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-danger:not(:disabled):hover {
  background: #a80017;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg);
}

/* ========================================================================
   Badge
   ======================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1.4;
}
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red   { background: var(--red-light);   color: var(--red); }
.badge-orange{ background: var(--orange-light);color: var(--orange-dark); }
.badge-yellow{ background: var(--yellow-light);color: #9a6d00; }
.badge-blue  { background: var(--blue-light);  color: var(--blue); }
.badge-gray  { background: var(--bg);          color: var(--text-muted); }

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
}

/* ========================================================================
   Tables
   ======================================================================== */

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--bg-subtle);
}

.data-table td .muted {
  color: var(--text-light);
  font-size: 11px;
  margin-top: 2px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, monospace;
  font-size: 12px;
}

/* ========================================================================
   Empty state
   ======================================================================== */

.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.empty-state-text {
  font-size: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.empty-state code {
  font-size: 11px;
}

/* ========================================================================
   Metric / Stat boxes
   ======================================================================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.stat-box {
  padding: 14px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ========================================================================
   Form
   ======================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  gap: 12px;
}

@media (max-width: 800px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-light);
}

.form-input,
.form-select {
  padding: 8px 10px;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.12);
}

.form-input:disabled,
.form-select:disabled {
  background: var(--bg);
  opacity: 0.6;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 4px;
}

/* ========================================================================
   Alert / feedback
   ======================================================================== */

.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.5;
  border-left: 3px solid;
}

.alert-info    { background: var(--bg-subtle);   color: var(--text-muted); border-color: var(--text-light); }
.alert-success { background: var(--green-light); color: var(--green); border-color: var(--green); }
.alert-error   { background: var(--red-light);   color: var(--red); border-color: var(--red); }
.alert-warning { background: var(--yellow-light);color: #9a6d00; border-color: var(--yellow); }

/* ========================================================================
   Responsive sidebar
   ======================================================================== */

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    padding: 12px 16px;
    overflow-x: auto;
  }
  .sidebar-brand {
    border-bottom: none;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
  }
  .sidebar-brand-text {
    display: none;
  }
  .sidebar-section-label {
    display: none;
  }
  .sidebar-section {
    margin-bottom: 0;
    margin-left: 16px;
  }
  .sidebar-nav {
    flex-direction: row;
    gap: 4px;
  }
  .sidebar-link {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 12px;
  }
  .sidebar-footer {
    display: none;
  }
  .app-main {
    padding: 16px 20px 40px;
  }
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

