:root {
  --app-primary: #2563eb;
  --app-primary-dark: #1e3a8a;
  --app-secondary: #7c3aed;
  --app-success: #0f9f6e;
  --app-warning: #f59e0b;
  --app-danger: #dc2626;
  --app-info: #0891b2;
  --app-ink: #172033;
  --app-muted: #667085;
  --app-border: #dbe4f0;
  --app-surface: #ffffff;
  --app-soft: #f5f8ff;
  --app-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --app-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
  --app-radius: 1rem;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 13px;
}

@media (min-width: 992px) {
  html {
    font-size: 14px;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--app-ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 45%, #f7fafc 100%);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-shell {
  flex: 1 0 auto;
  width: 100%;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

main {
  width: 100%;
}

a {
  color: var(--app-primary);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--app-secondary);
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  color: #111827;
  letter-spacing: -0.025em;
}

h1, .h1 {
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

h2, .h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
}

h3, .h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.lead {
  font-size: 1rem;
  line-height: 1.65;
}

.text-muted {
  color: var(--app-muted) !important;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.app-navbar {
  background: linear-gradient(100deg, #0f172a 0%, var(--app-primary-dark) 46%, var(--app-secondary) 100%);
  border: 0;
  min-height: 58px;
}

.navbar,
.navbar .dropdown-menu {
  z-index: 1050;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  color: #ffffff !important;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.86) !important;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0.1rem 0.15rem;
  padding: 0.45rem 0.8rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .show > .nav-link {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.28);
  padding: 0.35rem 0.55rem;
}

.nav-login {
  background: rgba(255, 255, 255, 0.16);
}

.dropdown-menu {
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 0.85rem;
  box-shadow: var(--app-shadow-sm);
  padding: 0.45rem;
  font-size: 0.88rem;
}

.dropdown-item {
  border-radius: 0.6rem;
  padding: 0.48rem 0.75rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: #eef4ff;
  color: var(--app-primary-dark);
}

.container,
.container-fluid,
.container-xxl {
  --bs-gutter-x: 1.35rem;
}

.card {
  border: 1px solid rgba(219, 228, 240, 0.88) !important;
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow-sm);
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.card-header {
  border-bottom: 1px solid rgba(219, 228, 240, 0.82);
  font-weight: 700;
}

.card-body {
  padding: 1.15rem;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
}

.card-img-top,
.img-fluid {
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
}

.shadow-sm {
  box-shadow: var(--app-shadow-sm) !important;
}

.shadow-lg {
  box-shadow: var(--app-shadow) !important;
}

.btn {
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 0.95rem;
  padding: 0.68rem 1.25rem;
}

.btn-sm {
  font-size: 0.79rem;
  padding: 0.36rem 0.72rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  border-color: transparent;
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-secondary,
.btn-outline-danger {
  background: #ffffff;
}

.badge {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.68rem;
}

.table {
  --bs-table-bg: transparent;
  color: var(--app-ink);
  font-size: 0.86rem;
  vertical-align: middle;
}

.table thead th {
  background: #eef4ff;
  color: #1e3a8a;
  border-bottom: 1px solid var(--app-border);
  font-size: 0.78rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.table tbody tr {
  border-color: rgba(219, 228, 240, 0.8);
}

.table tbody tr:hover {
  background: rgba(37, 99, 235, 0.045);
}

.form-label,
label {
  color: #344054;
  font-size: 0.84rem;
  font-weight: 650;
}

.form-control,
.form-select {
  border-color: var(--app-border);
  border-radius: 0.8rem;
  font-size: 0.9rem;
  padding: 0.58rem 0.78rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.16);
}

.input-group-text {
  border-color: var(--app-border);
  border-radius: 0.8rem;
  background: #f8fbff;
  color: var(--app-muted);
}

.alert {
  border: 0;
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow-sm);
  font-size: 0.9rem;
}

.alert-warning {
  background: #fff7e6;
  color: #7a4b00;
}

.alert-success {
  background: #eafaf3;
  color: #075e43;
}

.alert-danger {
  background: #fff0f0;
  color: #991b1b;
}

.alert-info {
  background: #e8f7fb;
  color: #155e75;
}

.bg-primary,
.card-header.bg-primary {
  background: linear-gradient(135deg, var(--app-primary), var(--app-secondary)) !important;
}

.bg-info,
.card-header.bg-info {
  background: linear-gradient(135deg, var(--app-info), #22c55e) !important;
}

.list-group-item {
  border-color: rgba(219, 228, 240, 0.86);
  font-size: 0.9rem;
}

.modal-content {
  border: 0;
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.modal-header {
  border-bottom-color: rgba(219, 228, 240, 0.88);
}

.modal-footer {
  border-top-color: rgba(219, 228, 240, 0.88);
}

/* Specific styling for currency symbols */
.currency-symbol {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 500;
}

/* Price display utilities */
.price-amount {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.price-large {
  font-size: 1.25rem;
  font-weight: 600;
}

.price-medium {
  font-size: 1.05rem;
  font-weight: 500;
}

.price-small {
  font-size: 0.95rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}