/* ---------------------------
   GLOBAL RESET & BASE STYLES
---------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f5fa;
  color: #333;
  padding-bottom: 50px;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 600;
}

/* ---------------------------
   TOP NAVIGATION BAR
---------------------------- */
.top-bar {
  background-color: #4a148c;
  height: 70px;
  box-shadow: none !important; /* remove shadow */
}

.nav-logo {
  height: 70px;
  width: auto;
}

.brand-text {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link {
  color: white !important;
  padding: 8px 15px;
  font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: rgba(255,255,255,0.15);
  border-radius: 6px;
}

@media (max-width: 992px) {
  .brand-text {
    display: none;
  }
}

/* ---------------------------
   MAIN DASHBOARD WRAPPER
---------------------------- */
.main-dashboard {
  padding: 2rem 0;
}

/* ---------------------------
   CARD BASE STYLE
---------------------------- */
.card-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ---------------------------
   PROFILE + ADDRESS (Bootstrap grid)
---------------------------- */
.profile-and-address-wrapper {
  margin-bottom: 1.5rem;
}

.profile-card-container,
.shipping-card {
  background-color: #fff;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 0.5rem;
  padding: 1rem;
  height: 100%;
}

/* ---------------------------
   PROFILE CARD
---------------------------- */
.top-bar-heading {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #4a148c;
  margin: -1rem -1rem 1rem -1rem;
}

.profile-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.profile-avatar {
  flex: 0 0 140px;
  text-align: center;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #4a148c;
  margin-bottom: 0.5rem;
}

.profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-details .label-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-details .label-value-row .label {
  min-width: 120px;
  font-weight: 600;
  color: #555;
}

.profile-details .label-value-row .value {
  flex-grow: 1;
  color: #333;
  display: flex;
  align-items: center;
}

/* ---------------------------
   REFERRAL CODE BADGE
---------------------------- */
.referral-code-badge {
  background-color: #4a148c; /* dashboard purple */
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.referral-code-badge:hover {
  background-color: #6a1b9a; /* lighter purple on hover */
}

.referral-code-badge .copy-icon {
  font-size: 14px;
  color: #555;
}

.referral-code-badge.copied {
  background-color: #d4f7d4;
  color: #1a6e1a;
  border-color: #a3e0a3;
}

/* ---------------------------
   SHIPPING CARD
---------------------------- */
.shipping-card > .top-bar {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #4a148c;
  margin: -1rem -1rem 1rem -1rem;
}

.overseas-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.overseas-address-grid > div {
  display: flex;
  flex-direction: column;
}

.label.fw-bold.text-muted {
  font-weight: 600;
  color: #6c757d;
}

#home-address a.btn-outline-primary {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
}

/* ---------------------------
   QUICK STATS
---------------------------- */
.quick-stats .stat {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.quick-stats .stat h3 {
  font-size: 1.8rem;
  color: #4a148c;
  margin-bottom: 0.3rem;
}

.quick-stats .stat span {
  font-size: 0.9rem;
  color: #777;
}

/* ---------------------------
   RECENT PACKAGES TABLE
---------------------------- */
.recent-packages table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.recent-packages th {
  background: #4a148c;
  color: white;
  padding: 0.75rem 1rem;
}

.recent-packages td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #eee;
}

.recent-packages tr:hover {
  background-color: #f3e5f5;
}

/* ---------------------------
   RESPONSIVE FIXES
---------------------------- */
@media (max-width: 768px) {
  .overseas-address-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------
   FOOTER BAR
---------------------------- */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #4a148c !important;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  z-index: 1000;
}

.footer-bar .container {
  text-align: center;
}
/* Solid dashboard purple button */
.btn-dashboard {
  background-color: #4a148c; /* dashboard purple */
  color: #fff;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-dashboard:hover {
  background-color: #6a1b9a; /* slightly lighter purple on hover */
  color: #fff;
}

/* Outline style button */
.btn-dashboard-outline {
  color: #4a148c;
  border: 1px solid #4a148c;
  background-color: transparent;
}

.btn-dashboard-outline:hover {
  background-color: #4a148c;
  color: #fff;
}
.alert-note-purple {
    background-color: #f3e5f5 !important; /* light purple */
    color: #4a148c !important;           /* dark purple text */
    border: 1px solid #d1c4e9 !important;
    padding: 1rem;
    border-radius: 0.5rem;
}
.pagination .page-link {
  color: #4a148c; /* dashboard purple */
  border-color: #4a148c;
}

.pagination .page-link:hover {
  background-color: #6a1b9a;
  color: #fff;
  border-color: #6a1b9a;
}

.pagination .page-item.active .page-link {
  background-color: #4a148c;
  border-color: #4a148c;
  color: #fff;
}

/* Progress Bar Height & Rounded */
.progress {
  height: 10px;
  border-radius: 5px;
  background-color: #e9ecef; /* light gray background */
}

.progress-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}

/* Status Colors */
.bg-danger {
  background-color: #dc3545 !important; /* red */
}

.bg-primary {
  background-color: #0d6efd !important; /* blue */
}

.bg-success {
  background-color: #198754 !important; /* green */
}

/* Invoice Upload Button */
.upload-icon-btn {
  padding: 4px 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Hover effect on uploaded invoice icon */
.fa-paperclip {
  font-size: 0.9rem;
  color: #198754;
  transition: transform 0.2s;
}

.fa-paperclip:hover {
  transform: scale(1.2);
}

/* Table alignment fixes */
.table td, .table th {
  vertical-align: middle !important;
}

/* Small form inside table cell */
td form .form-control-sm {
  display: inline-block;
  vertical-align: middle;
}
/* Remove number input spinners */
.declared-input::-webkit-inner-spin-button,
.declared-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.declared-input {
  -moz-appearance: textfield; /* Firefox */
}