/* =========================================================
   LOGEXA DESIGN SYSTEM v1.0
   Modern Logistics SaaS UI
========================================================= */

:root {

  /* =========================
     BRAND COLORS
  ========================= */

  --primary: #19D3A6;
  --primary-hover: #14C197;
  --primary-light: #DDFBF3;

  --secondary: #071B2A;
  --secondary-light: #10283B;

  --info: #3B82F6;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* =========================
     BACKGROUNDS
  ========================= */

  --background: #F1F5F9;
  --surface: #FFFFFF;
  --surface-hover: #F9FAFB;

  --sidebar-bg: #071B2A;
  --sidebar-item: #A7B4C2;
  --sidebar-active: #19D3A6;

  /* =========================
     TEXT
  ========================= */

  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-white: #FFFFFF;

  /* =========================
     BORDERS
  ========================= */

  --border-color: #E5E7EB;
  --border-light: #F3F4F6;

  /* =========================
     SHADOWS
  ========================= */

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

  /* =========================
     RADIUS
  ========================= */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* =========================
     SPACING
  ========================= */

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;

  /* =========================
     TYPOGRAPHY
  ========================= */

  --font-family: 'Cairo', sans-serif;

  --font-xs: 12px;
  --font-sm: 14px;
  --font-md: 16px;
  --font-lg: 18px;
  --font-xl: 22px;
  --font-2xl: 28px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* =========================
     TRANSITIONS
  ========================= */

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}


/* =========================================================
   GLOBAL RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-md);
  line-height: 1.6;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1 {
  font-size: var(--font-2xl);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--font-lg);
  font-weight: var(--font-weight-medium);
}

p {
  color: var(--text-secondary);
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: var(--font-sm);
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--surface-hover);
}


/* =========================================================
   INPUTS
========================================================= */

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: white;
  font-size: var(--font-sm);
  transition: var(--transition-fast);
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(25, 211, 166, 0.15);
  outline: none;
}


/* =========================================================
   CARDS
========================================================= */

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}


/* =========================================================
   TABLES
========================================================= */

.table-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background: #F9FAFB;
}

.table th {
  padding: 16px;
  text-align: right;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

.table td {
  padding: 16px;
  border-top: 1px solid var(--border-light);
  font-size: var(--font-sm);
}

.table tbody tr:hover {
  background: #FAFAFA;
}


/* =========================================================
   STATUS BADGES
========================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-success {
  background: rgba(22,163,74,.12);
  color: var(--success);
}

.badge-warning {
  background: rgba(245,158,11,.12);
  color: var(--warning);
}

.badge-danger {
  background: rgba(239,68,68,.12);
  color: var(--danger);
}

.badge-info {
  background: rgba(59,130,246,.12);
  color: var(--info);
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
  width: 260px;
  height: 100vh;
  background: var(--sidebar-bg);
  padding: 20px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sidebar-item);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.sidebar-item:hover {
  background: rgba(255,255,255,.04);
  color: white;
}

.sidebar-item.active {
  background: rgba(25,211,166,.15);
  color: var(--sidebar-active);
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
  height: 70px;
  background: white;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}


/* =========================================================
   PAGE CONTAINER
========================================================= */

.page-container {
  padding: 24px;
}


/* =========================================================
   FILTER SECTION
========================================================= */

.filter-box {
  display: flex;
  gap: 12px;
  background: white;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}


/* =========================================================
   MODALS
========================================================= */

.modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}
/* =========================================================
   SWEETALERT2 & NOTIFICATIONS
========================================================= */

.logexa-swal-popup {
  border-radius: 28px !important;
  padding: 2rem !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-family: var(--font-family) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

/* Success top bar accent */
.swal2-icon-success {
    border-color: #10B981 !important;
    color: #10B981 !important;
}
.swal2-icon-success [class^='swal2-success-line'] {
    background-color: #10B981 !important;
}
.swal2-icon-success .swal2-success-ring {
    border: 0.25em solid rgba(16, 185, 129, 0.2) !important;
}

.logexa-swal-title {
  color: #0F172A !important;
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  margin-bottom: 0.5rem !important;
  padding-top: 1rem !important;
}

.logexa-swal-html {
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.logexa-swal-confirm {
  background: linear-gradient(135deg, #19D3A6 0%, #10B981 100%) !important;
  border-radius: 14px !important;
  padding: 14px 32px !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 10px 15px -3px rgba(25, 211, 166, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
}

.logexa-swal-confirm:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 20px 25px -5px rgba(25, 211, 166, 0.4) !important;
}

.logexa-swal-cancel {
  background: #F8FAFC !important;
  color: #64748B !important;
  border-radius: 14px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border: 1px solid #E2E8F0 !important;
}

/* Custom Financial Summary inside Swal */
.swal-financial-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin: 15px 0;
    text-align: right;
}
.swal-financial-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.swal-financial-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}
.swal-financial-value {
    color: #1e293b;
    font-weight: 800;
    font-size: 14px;
}
.swal-financial-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px dashed #e2e8f0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.logexa-toast {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: var(--font-family) !important;
}

.logexa-toast-success {
  background: #ECFDF5 !important;
  border-right: 4px solid #10B981 !important;
  color: #065F46 !important;
}

.logexa-toast-error {
  background: #FEF2F2 !important;
  border-right: 4px solid #EF4444 !important;
  color: #991B1B !important;
}

