/* ============================================================
   CLIENT PORTAL CSS
   ============================================================ */

/* ── Login Split Layout ── */
.login-split {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: stretch;
}

/* Left Brand Panel */
.login-brand-panel {
  background: var(--atlas-gradient-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 40px;
}

.login-brand-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(196,30,42,0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(233,69,96,0.2) 0%, transparent 50%);
  animation: loginPulse 8s ease-in-out infinite alternate;
}

@keyframes loginPulse {
  0%   { transform: scale(1)   rotate(0deg); }
  100% { transform: scale(1.1) rotate(5deg); }
}

.login-brand-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--atlas-gradient);
}

/* Floating geometric shapes */
.brand-shape {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  animation: floatShape 12s ease-in-out infinite;
}

.brand-shape:nth-child(1) {
  width: 300px; height: 300px;
  top: -60px; left: -60px;
  animation-delay: 0s;
}

.brand-shape:nth-child(2) {
  width: 200px; height: 200px;
  bottom: 10%; right: -40px;
  animation-delay: -4s;
  border-color: rgba(196,30,42,0.15);
}

.brand-shape:nth-child(3) {
  width: 150px; height: 150px;
  top: 40%; left: 15%;
  animation-delay: -8s;
  border-color: rgba(233,69,96,0.12);
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.05); }
}

.brand-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.brand-content .brand-icon {
  width: 80px;
  height: 80px;
  background: var(--atlas-glass-bg);
  backdrop-filter: blur(var(--atlas-glass-blur));
  -webkit-backdrop-filter: blur(var(--atlas-glass-blur));
  border: 1px solid var(--atlas-glass-border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 32px;
  color: #fff;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,30,42,0.3); }
  50%      { box-shadow: 0 0 0 15px rgba(196,30,42,0); }
}

.brand-content h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.brand-content p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  opacity: 0.75;
  line-height: 1.7;
  max-width: 360px;
  margin: 0 auto 40px;
}

.brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.brand-features li {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-features li i {
  width: 32px;
  height: 32px;
  background: rgba(196,30,42,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #E94560;
  flex-shrink: 0;
}

/* Right Form Panel */
.login-form-panel {
  background: var(--atlas-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
}

.login-form-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(196,30,42,0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* Glassmorphism Card */
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--atlas-radius-lg);
  padding: 45px 40px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08),
              0 0 0 1px rgba(255,255,255,0.3) inset;
  position: relative;
  z-index: 2;
  animation: cardSlideUp 0.6s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-card .card-logo {
  text-align: center;
  margin-bottom: 10px;
}

.login-card .card-logo img {
  height: 60px;
  width: auto;
  border-radius: 10px;
}

.login-card .card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--atlas-secondary);
  text-align: center;
  margin-bottom: 4px;
}

.login-card .card-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--atlas-text-light);
  text-align: center;
  margin-bottom: 35px;
}

/* Form Inputs */
.login-field {
  margin-bottom: 22px;
}

.login-field label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--atlas-text);
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.3px;
}

.login-field .input-wrapper {
  position: relative;
}

.login-field .input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--atlas-text-muted);
  font-size: 15px;
  transition: var(--atlas-transition-fast);
  z-index: 3;
}

.login-field .form-control {
  height: 50px;
  padding: 12px 16px 12px 46px;
  background: rgba(255,255,255,0.9);
  border: 2px solid #E8ECF0;
  border-radius: var(--atlas-radius);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--atlas-text);
  transition: var(--atlas-transition);
  position: relative;
}

.login-field .form-control:focus {
  border-color: var(--atlas-primary);
  box-shadow: 0 0 0 4px rgba(196,30,42,0.08);
  background: #fff;
  outline: none;
}

.login-field .form-control:focus + i,
.login-field .input-wrapper:focus-within i {
  color: var(--atlas-primary);
}

.login-field .form-control::placeholder {
  color: var(--atlas-text-muted);
}

/* Remember Me Row */
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid #D1D5DB;
  border-radius: 5px;
  cursor: pointer;
  accent-color: var(--atlas-primary);
}

.remember-me label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--atlas-text-light);
  margin: 0;
  cursor: pointer;
}

/* Login Button Override */
.btn-atlas {
  height: 52px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--atlas-radius);
  background: var(--atlas-gradient);
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: var(--atlas-transition);
  cursor: pointer;
}

.btn-atlas::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-atlas:hover::before {
  left: 100%;
}

.btn-atlas:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,30,42,0.35);
}

.btn-atlas:active {
  transform: translateY(0);
}

/* Error Label */
.login-error {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-align: center;
  margin-bottom: 15px;
  padding: 10px 16px;
  background: rgba(196,30,42,0.06);
  border-radius: var(--atlas-radius-sm);
  border-left: 3px solid var(--atlas-primary);
  display: none;
}

.login-error[style*="visibility"] {
  display: block;
}

.login-card .login-error:not(:empty) {
  display: block;
}

/* Forgot Link */
.login-footer-link {
  text-align: center;
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--atlas-text-light);
}

.login-footer-link a {
  color: var(--atlas-primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--atlas-transition-fast);
}

.login-footer-link a:hover {
  color: var(--atlas-primary-dark);
  text-decoration: underline;
}

/* ── Login Responsive ── */
@media (max-width: 767px) {
  .login-split {
    flex-direction: column;
    min-height: auto;
  }

  .login-brand-panel {
    padding: 50px 30px;
    min-height: 280px;
  }

  .brand-content h2 {
    font-size: 24px;
  }

  .brand-features {
    display: none;
  }

  .login-form-panel {
    padding: 40px 20px;
  }

  .login-card {
    padding: 35px 25px;
  }
}

/* ============================================================
   ADMIN DASHBOARD LAYOUT
   ============================================================ */
body.dashboard-body {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    background: #f0f2f5;
    overflow: hidden;
    height: 100vh;
}

/* --- Top Header Bar --- */
.dash-topbar {
    position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 1000;
    background: linear-gradient(135deg, #C41E2A, #E94560);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.dash-topbar .brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.dash-topbar .brand img { height: 36px; }
.dash-topbar .brand span { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; }
.dash-topbar .top-right { display: flex; align-items: center; gap: 18px; }
.dash-topbar .top-right .user-info { color: rgba(255,255,255,0.9); font-size: 0.85rem; }
.dash-topbar .top-right .user-info i { margin-right: 6px; }
.dash-topbar .top-right .btn-logout-top {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
    color: #fff; padding: 6px 16px; border-radius: 6px; font-size: 0.8rem; font-weight: 500;
    cursor: pointer; transition: all 0.3s;
}
.dash-topbar .top-right .btn-logout-top:hover { background: rgba(255,255,255,0.3); }
.dash-topbar .sidebar-toggle {
    display: none; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer;
}

/* --- Sidebar --- */
.dash-sidebar {
    position: fixed; top: 60px; left: 0; bottom: 0; width: 240px; z-index: 999;
    background: #1A1A2E;
    overflow-y: auto; padding-top: 20px;
    transition: transform 0.3s ease;
}
.dash-sidebar .user-panel {
    text-align: center; padding: 15px 20px 25px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-sidebar .user-panel .avatar {
    width: 65px; height: 65px; border-radius: 50%;
    background: linear-gradient(135deg, #C41E2A, #E94560);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px; font-size: 1.5rem; color: #fff;
}
.dash-sidebar .user-panel h4 { color: #fff; font-size: 0.95rem; font-weight: 600; margin: 0 0 3px; font-family: 'Outfit', sans-serif; }
.dash-sidebar .user-panel p { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin: 0; }

.dash-sidebar .nav-label {
    color: rgba(255,255,255,0.35); font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; padding: 20px 20px 8px;
}
.dash-sidebar .side-nav { list-style: none; padding: 0; margin: 0; }
.dash-sidebar .side-nav li a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 20px; color: rgba(255,255,255,0.65);
    font-size: 0.85rem; text-decoration: none; transition: all 0.2s;
    border-left: 3px solid transparent;
}
.dash-sidebar .side-nav li a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.dash-sidebar .side-nav li a.active {
    background: rgba(196,30,42,0.15); color: #E94560;
    border-left-color: #E94560;
}
.dash-sidebar .side-nav li a i { width: 20px; text-align: center; font-size: 0.95rem; }

/* --- Main Content --- */
.dash-main {
    margin-left: 240px; margin-top: 60px;
    padding: 25px; 
    padding-bottom: 75px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

/* --- Page Title --- */
.dash-page-title {
    margin-bottom: 25px;
}
.dash-page-title h2 {
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.5rem;
    color: #1A1A2E; margin: 0 0 5px;
}
.dash-page-title p { color: #636E72; font-size: 0.85rem; margin: 0; }

/* --- Stat Cards (colored full-width like reference image) --- */
.stat-row { display: flex; gap: 20px; margin-bottom: 25px; flex-wrap: wrap; }
.stat-card-new {
    flex: 1; min-width: 200px; padding: 22px 20px; border-radius: 8px;
    color: #fff; display: flex; align-items: center; gap: 18px;
    position: relative; overflow: hidden; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.stat-card-new:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.stat-card-new .stat-icon-new {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.2); display: flex;
    align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.stat-card-new .stat-text h3 {
    font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800;
    margin: 0; line-height: 1;
}
.stat-card-new .stat-text p { margin: 4px 0 0; font-size: 0.78rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card-new.pink { background: linear-gradient(135deg, #E91E63, #F06292); }
.stat-card-new.blue { background: linear-gradient(135deg, #00BCD4, #26C6DA); }
.stat-card-new.green { background: linear-gradient(135deg, #4CAF50, #66BB6A); }
.stat-card-new.orange { background: linear-gradient(135deg, #FF9800, #FFB74D); }

/* --- Content Cards --- */
.dash-card {
    background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px; overflow: hidden;
}
.dash-card .card-header {
    padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; justify-content: space-between;
}
.dash-card .card-header h4 {
    font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700;
    color: #1A1A2E; margin: 0;
}
.dash-card .card-header h4 i { color: #C41E2A; margin-right: 8px; }
.dash-card .card-body-inner { padding: 20px; }

/* Quick track */
.quick-track-bar { display: flex; gap: 10px; }
.quick-track-bar .form-control { border-radius: 6px; height: 44px; border: 2px solid #e9ecef; font-size: 0.9rem; }
.quick-track-bar .form-control:focus { border-color: #C41E2A; box-shadow: 0 0 0 3px rgba(196,30,42,0.08); }
.quick-track-bar .btn-track {
    background: linear-gradient(135deg, #C41E2A, #E94560); color: #fff;
    border: none; padding: 0 25px; border-radius: 6px; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; white-space: nowrap; transition: all 0.3s;
}
.quick-track-bar .btn-track:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(196,30,42,0.3); }

/* Recent shipments table */
.table-dash { width: 100%; border-collapse: collapse; }
.table-dash thead th {
    background: #1A1A2E; color: #fff; padding: 12px 15px; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.table-dash tbody td { padding: 11px 15px; font-size: 0.85rem; color: #2D3436; border-bottom: 1px solid #f5f5f5; }
.table-dash tbody tr:hover { background: #f8f9fa; }
.table-dash .status-badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 600;
}
.table-dash .status-badge.delivered { background: #d4edda; color: #155724; }
.table-dash .status-badge.intransit { background: #d1ecf1; color: #0c5460; }
.table-dash .status-badge.pending { background: #fff3cd; color: #856404; }

/* --- Footer --- */
.dash-footer {
    position: fixed;
    bottom: 0;
    left: 240px;
    right: 0;
    background: #12121F;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 998;
}
.dash-footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
    margin: 0;
}
.dash-footer a {
    color: #E8363F;
    transition: all 0.2s ease;
}
.dash-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Dashboard Responsive --- */
@media (max-width: 992px) {
    .dash-sidebar { transform: translateX(-100%); }
    .dash-sidebar.show { transform: translateX(0); }
    .dash-main { margin-left: 0; }
    .dash-topbar .sidebar-toggle { display: block; }
    .dash-footer { left: 0; }
}
@media (max-width: 576px) {
    .stat-row { flex-direction: column; }
    .stat-card-new { min-width: auto; }
    .dash-main { padding: 15px; }
    .quick-track-bar { flex-direction: column; }
}

/* --- Topbar Search --- */
.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 3px;
    border-radius: 30px;
    width: 100%;
    max-width: 400px;
    margin: 0 20px;
    transition: all 0.3s;
}
.topbar-search:focus-within {
    background: rgba(255, 255, 255, 0.95);
    border-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.topbar-search .form-control {
    background: transparent !important;
    border: none !important;
    height: 34px !important;
    padding: 0 15px !important;
    font-size: 0.85rem !important;
    color: #fff !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
}
.topbar-search:focus-within .form-control {
    color: #1A1A2E !important;
}
.topbar-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}
.topbar-search:focus-within .form-control::placeholder {
    color: #adb5bd !important;
}
.topbar-search .btn-track-top {
    background: #fff;
    border: none;
    color: #C41E2A;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.topbar-search:focus-within .btn-track-top {
    background: linear-gradient(135deg, #C41E2A, #E94560);
    color: #fff;
}
.topbar-search .btn-track-top:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .topbar-search {
        max-width: 220px;
        margin: 0 10px;
    }
    .topbar-search .btn-track-top {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}
@media (max-width: 576px) {
    .topbar-search {
        display: none !important;
    }
}

/* --- Vertical Timeline --- */
.timeline-grid {
    width: 100%;
}
.timeline-grid td {
    padding: 0;
    border: none !important;
    background: transparent !important;
}
.timeline-list {
    position: relative;
    padding: 10px 0 10px 30px;
    margin-left: 20px;
    border-left: 2px solid #e9ecef;
}
.timeline-item {
    position: relative;
    margin-bottom: 25px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-badge {
    position: absolute;
    left: -41px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #C41E2A;
    box-shadow: 0 0 0 3px #fff;
    z-index: 10;
}
.timeline-item:first-child .timeline-badge {
    border-color: #28a745;
    background: #28a745;
    box-shadow: 0 0 0 4px rgba(40,167,69,0.2);
}
.timeline-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    border: 1px solid #e9ecef;
    position: relative;
}
.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 15px;
    height: 15px;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    transform: rotate(45deg);
}
.timeline-time {
    font-size: 0.75rem;
    color: #636E72;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}
.timeline-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0 0 6px 0;
}
.timeline-desc {
    font-size: 0.82rem;
    color: #2D3436;
    margin: 0;
}

/* --- Premium Details Table --- */
.table-details-premium {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
}
.table-details-premium thead th {
    background: #1A1A2E;
    color: #ffffff;
    padding: 14px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 3px solid #E94560;
    text-align: left;
}
.table-details-premium tbody td {
    padding: 12px 16px;
    font-size: 0.82rem;
    color: #2D3436;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.15s ease;
}
.table-details-premium tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
.table-details-premium tbody tr:hover {
    background-color: #f1f3f5;
}
.table-details-premium tbody td strong {
    color: #C41E2A;
    font-weight: 700;
}
.btn-show-detail {
    display: inline-block !important;
    padding: 5px 12px !important;
    background: rgba(196,30,42,0.06) !important;
    color: #C41E2A !important;
    border-radius: 20px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: 1px solid rgba(196,30,42,0.1) !important;
}
.btn-show-detail:hover {
    background: linear-gradient(135deg, #C41E2A, #E94560) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(196,30,42,0.2) !important;
    border-color: transparent !important;
}

