:root {
  --bottom-nav-chrome-height: 4rem;
  --bottom-nav-height: calc(var(--bottom-nav-chrome-height) + env(safe-area-inset-bottom, 0px));
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "SF Pro Display", sans-serif;
}

.link-no-underline {
    text-decoration: none;
}

.no-underline {
    text-decoration: none !important;
}

op-1 {
  opacity: 1!important;
}

.btn {
  border-radius: 1rem !important;
}

.btn-secondary-outline {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #e9ecef !important;
  border-radius: 1rem !important;
}

.btn-secondary-outline:hover {
  background-color: #f8f9fa !important;
  color: #000000 !important;
  border-color: #dee2e6 !important;
}

.btn-secondary-outline:active,
.btn-secondary-outline:focus {
  background-color: #e9ecef !important;
  color: #000000 !important;
  border-color: #dee2e6 !important;
}

.btn-custom-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  background-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  color: #fff;
  border: 0;
  border-radius: 1rem !important;
  min-height: 48px;
  font-weight: 600;
  text-decoration: none;
}

.btn-custom-primary:hover {
  background-color: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

.btn-custom-primary:disabled,
.btn-custom-primary.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-custom-sm {
  min-height: 36px !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 0.875rem !important;
}

.btn-custom-secondary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin: 0;
  padding: 7px 14px 7px 13px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 1rem;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  text-decoration: none;
  color: rgba(22, 26, 34, 0.8);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.62) 50%,
    rgba(255, 255, 255, 0.52) 100%
  );
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    inset 0 -1px 1px rgba(255, 255, 255, 0.35),
    0 0.5px 1px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
}

.btn-custom-secondary:disabled,
.btn-custom-secondary.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Large secondary button matching primary button height */
.btn-custom-secondary-lg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  margin: 0;
  padding: 12px 24px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 1rem;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  text-decoration: none;
  color: rgba(22, 26, 34, 0.8);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.62) 50%,
    rgba(255, 255, 255, 0.52) 100%
  );
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    inset 0 -1px 1px rgba(255, 255, 255, 0.35),
    0 0.5px 1px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
}

.btn-custom-secondary-lg:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.65) 100%
  );
  text-decoration: none;
}

.btn-custom-secondary-lg:disabled,
.btn-custom-secondary-lg.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input,
select,
textarea {
  font-size: max(16px, 0.875rem) !important;
  border-radius: 24px !important;
  border: 1px solid #e9ecef !important;
}

input::placeholder,
textarea::placeholder {
  font-size: max(14px, 0.875rem) !important;
  color: #6c757d !important;
}

select {
  font-size: max(14px, 0.875rem) !important;
  color: #6c757d !important;
}

select:valid:not([value=""]) {
  color: #212529 !important;
}

select option {
  font-size: max(14px, 0.875rem) !important;
  color: #212529 !important;
}

select option:first-child {
  color: #6c757d !important;
}

.br-24 {
  border-radius: 1rem !important;
}

.br-12 {
  border-radius: 12px !important;
}

.sp-2 {
  letter-spacing: 2px!important;
}

.sp-1 {
  letter-spacing: 1px!important;
}

.fw-500 {
  font-weight: 500!important;
}

/* Text Size Utilities - Aligned with DaisyUI/Tailwind */
.text-xxs {
  font-size: 0.625rem !important;
}

.text-xs {
  font-size: 0.75rem !important;
}

.text-sm {
  font-size: 0.875rem !important;
}

.text-base {
  font-size: 1rem !important;
}

.text-lg {
  font-size: 1.125rem !important;
}

.text-xl {
  font-size: 1.25rem !important;
}

.text-2xl {
  font-size: 1.5rem !important;
}

.text-3xl {
  font-size: 1.875rem !important;
}

.text-4xl {
  font-size: 2.25rem !important;
}

.text-5xl {
  font-size: 3rem !important;
}

/* Text Color Utilities */
.text-black {
  color: #000000 !important;
}

.bg-theme {
  background: #FFFFFF !important;
}

.bg-black {
  background-color: #000000 !important;
}

.bg-success-light {
  background-color: #c8f4dd !important;
}

.bg-primary-light {
  background-color: #e3f2fd !important;
}

.alert.alert-primary {
  background-color: #e3f2fd;
  border-color: transparent;
  color: #212529;
}

.bg-warning-light {
  background-color: #fff8e1 !important;
}

.bg-info-light {
  background-color: #e8f4f8 !important;
}

.bg-danger-light {
  background-color: #ffe4e6 !important;
}

.text-consignment {
  color: #d4af37 !important;
}

.bg-consignment {
  background-color: #d4af37 !important;
}

.bg-consignment-light {
  background-color: #fff8e1 !important;
}

.input-group-text {
  border-radius: 24px !important;
  border: 1px solid #e9ecef !important;
}

.input-group-text i {
  font-size: 1.2rem !important;
}

.input-group > .input-group-text:first-child {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: 0 !important;
}

.input-group > .form-control ~ .input-group-text,
.input-group > .form-select ~ .input-group-text {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 0 !important;
}

.input-group > .input-group-text {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.input-group-text {
  line-height: 1;
}

.input-group > .form-control:not(:first-child),
.input-group > .form-select:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 0 !important;
}

.input-group > .form-control:not(:last-child),
.input-group > .form-select:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group > .country-flag-select + .form-control,
.input-group > .country-flag-select + .form-select {
  margin-left: 0 !important;
}

.input-group > .country-flag-select {
  position: relative;
  display: flex;
  align-self: stretch;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.input-group > .country-flag-select:not(:first-child) .country-flag-select__trigger {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 0 !important;
}

.input-group > .country-flag-select:last-child .country-flag-select__trigger {
  border-top-right-radius: 1rem !important;
  border-bottom-right-radius: 1rem !important;
}

.mobile-number-field {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.mobile-number-field > .country-flag-select {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  min-width: 7rem;
  max-width: 10.5rem;
  display: flex;
}

.mobile-number-field > .country-flag-select .country-flag-select__enhanced {
  flex: 1;
  min-width: 0;
  display: flex;
}

.mobile-number-field > .country-flag-select .country-flag-select__trigger {
  width: 100%;
  height: 100%;
  min-height: calc(1.5em + 2rem + 2px);
  border-radius: 1rem 0 0 1rem !important;
  border-right-width: 0;
  box-sizing: border-box;
}

.mobile-number-field > .form-control {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 0 !important;
  border-radius: 0 1rem 1rem 0 !important;
  border-left-width: 0 !important;
}

.mobile-number-field > .country-flag-select .country-flag-select__trigger:focus,
.mobile-number-field > .form-control:focus {
  position: relative;
  z-index: 2;
}

.country-flag-select {
  position: relative;
  min-width: 0;
}

.country-flag-select__enhanced {
  flex: 1;
  min-width: 0;
  display: flex;
}

.country-flag-select__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: calc(1.5em + 2rem + 2px);
  padding: 1rem 0.75rem;
  border: 1px solid #e9ecef;
  border-radius: 1rem !important;
  background-color: #fff;
  font-size: 16px !important;
  text-align: left;
  color: inherit;
  box-sizing: border-box;
}

.country-flag-select__trigger:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: 0;
}

.country-flag-select__trigger-flag {
  width: 20px;
  height: 15px;
  object-fit: contain;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.country-flag-select__trigger-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-flag-select__trigger-chevron {
  color: #6c757d;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.country-flag-select__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: auto;
  width: min(20rem, 90vw);
  z-index: 1060;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  overflow: hidden;
}

.mobile-number-field .country-flag-select__panel {
  width: min(20rem, calc(100vw - 2rem));
}

.country-flag-select__search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
  background-color: #fff;
  font-size: 16px !important;
  border-radius: 1rem 1rem 0 0 !important;
}

.country-flag-select__search:focus {
  outline: 0;
}

.country-flag-select__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(360px, 50vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #fff;
}

.country-flag-select__option {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  background-color: #fff;
  cursor: pointer;
}

.country-flag-select__option:hover,
.country-flag-select__option.selected {
  background-color: #f8f9fa;
}

.country-flag-select__flag {
  width: 20px;
  height: 15px;
  object-fit: contain;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.chrome-pill {
  border: 1px solid rgb(255 255 255 / 0.7);
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.92) 0%,
    rgb(255 255 255 / 0.72) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    0 2px 12px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chrome-pill:hover {
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.98) 0%,
    rgb(255 255 255 / 0.82) 100%
  );
  border-color: rgb(255 255 255 / 0.85);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255),
    0 4px 16px rgba(15, 23, 42, 0.06);
}

.chrome-pill:focus,
.chrome-pill:focus-visible {
  outline: none;
  border-color: rgb(255 255 255 / 0.78);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.92),
    0 2px 12px rgb(15 23 42 / 0.06),
    0 0 0 2px rgb(59 130 246 / 0.2);
}

.chrome-pill--icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.customer-id-chip {
  padding: 0.375rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #f8f9fa;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.customer-id-chip:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.customer-id-chip:active {
  opacity: 0.85;
}

.cta-action-row {
  min-height: 4.5rem;
  border-bottom: 1px solid #e5e7eb;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.cta-action-row:last-child {
  border-bottom: none;
}

.cta-action-row:active {
  opacity: 0.7;
}

.cta-icon-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background-size: 200% 200%;
  animation: cta-icon-gradient 6s ease-in-out infinite;
}

.cta-icon-block .bi {
  font-size: 1.125rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

@keyframes cta-icon-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.cta-icon-block--green {
  background-image: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2) 0%,
    rgba(34, 197, 94, 0.08) 45%,
    rgba(34, 197, 94, 0.16) 100%
  );
  color: #16a34a;
}

.cta-icon-block--purple {
  background-image: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.2) 0%,
    rgba(168, 85, 247, 0.08) 45%,
    rgba(168, 85, 247, 0.16) 100%
  );
  color: #9333ea;
}

.cta-icon-block--orange {
  background-image: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.2) 0%,
    rgba(249, 115, 22, 0.08) 45%,
    rgba(249, 115, 22, 0.16) 100%
  );
  color: #ea580c;
}

.cta-icon-block--red {
  background-image: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2) 0%,
    rgba(239, 68, 68, 0.08) 45%,
    rgba(239, 68, 68, 0.16) 100%
  );
  color: #dc2626;
}

.cta-icon-block--blue {
  background-image: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2) 0%,
    rgba(59, 130, 246, 0.08) 45%,
    rgba(59, 130, 246, 0.16) 100%
  );
  color: #2563eb;
}

.cta-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  min-height: 1.125rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  background-color: #dc2626;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
}

.portal-submission-tabs .nav-link.portal-submission-tab {
  display: inline-flex;
  align-items: center;
  color: #212529;
  background: #f8f9fa !important;
  border: 1px solid #e5e7eb;
  border-radius: 24px !important;
  font-weight: 400;
  cursor: pointer;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.portal-submission-tabs .nav-link.portal-submission-tab:hover,
.portal-submission-tabs .nav-link.portal-submission-tab:focus,
.portal-submission-tabs .nav-link.portal-submission-tab:focus-visible {
  color: #212529;
  background: #f8f9fa !important;
  border-color: #e5e7eb;
  outline: none;
}

.portal-submission-tabs .nav-link.portal-submission-tab.active,
.portal-submission-tabs .nav-link.portal-submission-tab.active:hover,
.portal-submission-tabs .nav-link.portal-submission-tab.active:focus,
.portal-submission-tabs .nav-link.portal-submission-tab.active:focus-visible,
.portal-submission-tabs .nav-link.portal-submission-tab.active:active {
  color: #2563eb !important;
  background: #ffffff !important;
  border-color: #2563eb !important;
  font-weight: 600;
}

.portal-tab-badge {
  background-color: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-weight: 600;
}

.portal-submission-tabs .nav-link.portal-submission-tab.active .portal-tab-badge {
  background-color: #2563eb;
  color: #ffffff;
}

.portal-submission-tabs--compact .nav-link.portal-submission-tab {
  font-size: 0.75rem;
  padding: 0.375rem 0.625rem;
  white-space: nowrap;
}

.portal-submission-tabs--compact .portal-tab-badge {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
}

.portal-submission-tabs-scroll {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.portal-submission-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.portal-submission-tabs-scroll .portal-submission-tabs {
  width: max-content;
}

.card-border {
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 28px rgba(15, 23, 42, 0.06) !important;
}

.modal {
  z-index: 1105;
}

.modal-backdrop {
  z-index: 1100;
  opacity: 1 !important;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.15s linear;
}

.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
