/* =======================
   BASE
======================= */

body {
  background-color: #f8fafc;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* =======================
   SIDEBAR
======================= */

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
}

.sidebar-header {
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  color: #c7d2fe;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.25s ease;
}

.sidebar-menu a i {
  font-size: 16px;
}

.sidebar-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.sidebar-menu a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  position: relative;
}

.sidebar-menu a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #6366f1;
}

/* =======================
   CONTENT
======================= */

.content {
  margin-left: 260px;
  padding: 30px;
  width: 100%;
}

.page-header h4 {
  font-weight: 600;
  margin-bottom: 25px;
}

/* =======================
   DASHBOARD CARDS
======================= */

.stat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 10px rgba(0,0,0,0.08),
    0 16px 30px rgba(0,0,0,0.10);
}

.stat-title {
  font-size: 13px;
  color: #64748b;
  letter-spacing: 0.3px;
}

.stat-value {
  font-size: 30px;
  font-weight: 600;
  margin-top: 8px;
  color: #020617;
}

/* =======================
   LOGIN PAGE (SAME CSS)
======================= */

.login-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #020617, #0f172a);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.login-title {
  text-align: center;
  font-weight: 600;
  margin-bottom: 6px;
}

.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.login-card .form-label {
  font-size: 13px;
  color: #334155;
}

.login-card .form-control {
  border-radius: 8px;
  font-size: 14px;
}

.login-card .btn-primary {
  border-radius: 8px;
  padding: 10px;
}


.erp-card {
  border: none;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.06);
}

.table thead th {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.table td {
  font-size: 14px;
}

.badge.bg-success {
  background-color: #16a34a !important;
}

.badge.bg-secondary {
  background-color: #64748b !important;
}
.badge.bg-warning {
  background-color: #f59e0b !important;
} 

.view-label {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 2px;
}

.view-value {
  font-size: 15px;
  font-weight: 500;
  color: #020617;
}

/* ===== DASHBOARD STATS ===== */
.stat-card {
  position: relative;
  color: #fff;
}

.stat-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 28px;
  opacity: 0.25;
}

/* Color themes */
.stat-blue { background: linear-gradient(135deg,#3b82f6,#1e40af); }
.stat-purple { background: linear-gradient(135deg,#8b5cf6,#5b21b6); }
.stat-teal { background: linear-gradient(135deg,#14b8a6,#0f766e); }
.stat-orange { background: linear-gradient(135deg,#f97316,#c2410c); }
.stat-green { background: linear-gradient(135deg,#22c55e,#15803d); }
.stat-red { background: linear-gradient(135deg,#ef4444,#991b1b); }

.stat-title {
  color: rgba(255,255,255,0.85);
}

.stat-value {
  color: #fff;
}

/* ===== SHIPPING SETTINGS ===== */
.shipping-card {
  border-left: 5px solid transparent;
}

.shipping-dhl {
  border-color: #ffcc00;
}

.shipping-fedex {
  border-color: #4d148c;
}

.shipping-auspost {
  border-color: #e4002b;
}

.shipping-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shipping-header img {
  height: 32px;
}

.shipping-header h6 {
  margin: 0;
  font-weight: 600;
}
.sidebar {
  height: 100vh;
  overflow: hidden;
}

.sidebar-menu {
  height: calc(100vh - 60px);  
  overflow-y: auto;
  padding-bottom: 20px;
}
 
.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: #999;
}
