/**
 * LogiSync Express - Custom CSS Styling
 */
:root {
  --primary-navy: #0f172a;
  --secondary-navy: #1e293b;
  --accent-blue: #0284c7;
  --accent-light: #e0f2fe;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --sidebar-width: 260px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #334155;
  min-height: 100vh;
}

/* NAVBAR */
.navbar-brand-logi {
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
  font-size: 1.35rem;
}
.navbar-brand-logi span {
  color: #0284c7;
}

/* CARDS */
.card-custom {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-custom:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.card-header-clean {
  background: transparent;
  border-bottom: 1px solid #f1f5f9;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

/* STATS KPI CARD */
.stat-widget {
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* TIMELINE TRACKING */
.tracking-timeline {
  position: relative;
  padding-left: 2rem;
  list-style: none;
}
.tracking-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  width: 3px;
  background: #cbd5e1;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-point {
  position: absolute;
  left: -2rem;
  top: 2px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-item.active .timeline-point {
  background: #0284c7;
  border-color: #bae6fd;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}
.timeline-item.delivered .timeline-point {
  background: #10b981;
  border-color: #a7f3d0;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

/* ADMIN LAYOUT */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: var(--sidebar-width);
  background: #0f172a;
  color: #94a3b8;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.admin-sidebar .sidebar-brand {
  padding: 1.5rem 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  border-bottom: 1px solid #1e293b;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-sidebar .nav-link {
  color: #94a3b8;
  padding: 0.8rem 1.25rem;
  font-weight: 500;
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  margin: 0.15rem 0.75rem;
  transition: all 0.2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
}
.admin-sidebar .nav-link i {
  width: 22px;
  font-size: 1.1rem;
}
.admin-sidebar .sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  padding: 1rem 1.25rem 0.4rem;
  font-weight: 700;
}
.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  overflow-x: hidden;
}
.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BUTTONS */
.btn-primary-logi {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.3);
}
.btn-primary-logi:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
}

/* PRINT & THERMAL STYLES */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print, .admin-sidebar, .admin-topbar, .btn {
    display: none !important;
  }
  .card-custom {
    border: none !important;
    box-shadow: none !important;
  }
}
