/* Finanzapp - Professional Dashboard Design System */

/* Base Variables & Design Tokens */
:root {
  /* Core Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary: #6b21a8;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #0284c7;
  
  /* Neutrals */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Spacing */
  --spacer: 1rem;
  --spacer-xs: calc(var(--spacer) * 0.25);
  --spacer-sm: calc(var(--spacer) * 0.5);
  --spacer-md: var(--spacer);
  --spacer-lg: calc(var(--spacer) * 1.5);
  --spacer-xl: calc(var(--spacer) * 3);
  
  /* Component styles */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
  --border-radius-2xl: 1rem;
  --border-radius-full: 9999px;
  
  --box-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  --transition-fast: 150ms;
  --transition: 300ms;
  --transition-slow: 500ms;
  
  /* Typography */
  --font-family-base: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
  --font-family-heading: var(--font-family-base);
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Z-index layering */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  
  /* Dashboard specific */
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 70px;
  --topbar-height: 64px;
  --content-max-width: 1320px;
}

/* Base Styles */
html {
  font-size: 16px;
  height: 100%;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  margin-bottom: var(--spacer);
  color: var(--gray-900);
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  margin-top: 0;
  margin-bottom: var(--spacer);
}

.lead {
  font-size: 1.15rem;
  font-weight: var(--font-weight-normal);
  color: var(--gray-600);
  margin-bottom: var(--spacer-lg);
}

.page-title {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--spacer-sm);
}

.section-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  margin-bottom: var(--spacer-lg);
  padding-bottom: var(--spacer-sm);
  border-bottom: 1px solid var(--gray-200);
}

/* Global Layout */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.main-content {
  margin-top: var(--topbar-height);
  min-height: calc(100vh - var(--topbar-height));
  padding: var(--spacer-lg) 0;
}

/* Navigation - Navbar */
.navbar {
  height: var(--topbar-height);
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--box-shadow-sm);
  padding: 0 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-index-fixed);
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

/* Fix for logo image in Safari */
.navbar-brand img {
  width: auto;
  height: 30px;
  object-fit: contain;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
  max-width: 100%;
}

.navbar .nav-link {
  color: var(--gray-700);
  font-weight: var(--font-weight-medium);
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast) ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--primary);
}

.navbar .nav-link i {
  margin-right: 0.375rem;
  font-size: 1.1em;
}

.navbar .nav-link.active {
  color: var(--primary);
  position: relative;
}

.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px 2px 0 0;
}

.dropdown-menu {
  padding: 0.5rem 0;
  border: none;
  box-shadow: var(--box-shadow-lg);
  border-radius: var(--border-radius);
}

.dropdown-item {
  padding: 0.5rem 1.25rem;
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--gray-100);
  color: var(--gray-900);
}

.dropdown-item i {
  margin-right: 0.5rem;
  opacity: 0.7;
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-md);
}

.card-header {
  background-color: var(--white);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  font-weight: var(--font-weight-semibold);
}

.card-header h5 {
  margin-bottom: 0;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
}

.card-header .card-title {
  margin-bottom: 0;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
}

.card-header-tabs {
  margin-bottom: -1rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 1rem 1.5rem;
}

/* Stat Cards & Dashboard Components */
.stat-card {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-lg);
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.stat-data {
  flex-grow: 1;
}

.stat-data h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  font-weight: var(--font-weight-bold);
}

.stat-data p {
  margin-bottom: 0;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.stat-change {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

.avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-weight: var(--font-weight-semibold);
  width: 36px;
  height: 36px;
  overflow: hidden;
  text-align: center;
  line-height: 1;
}

.avatar-xs {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  line-height: 24px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
}

.avatar-md {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}

.avatar-xl {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

/* Buttons */
.btn {
  font-weight: var(--font-weight-medium);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  line-height: 1.5;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--border-radius-sm);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius-lg);
}

.btn i {
  margin-right: 0.5rem;
  font-size: 1em;
}

.btn-icon {
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
}

.btn-icon i {
  margin-right: 0;
  font-size: 1.25em;
}

.btn-icon-sm {
  padding: 0.375rem;
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
}

.btn-icon-lg {
  padding: 0.75rem;
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-success {
  background-color: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.btn-success:hover,
.btn-success:focus {
  background-color: #047857;
  border-color: #047857;
  color: var(--white);
}

.btn-danger {
  background-color: var(--danger);
  border-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #b91c1c;
  border-color: #b91c1c;
  color: var(--white);
}

.btn-warning {
  background-color: var(--warning);
  border-color: var(--warning);
  color: var(--white);
}

.btn-info {
  background-color: var(--info);
  border-color: var(--info);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--gray-500);
  border-color: var(--gray-500);
  color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--gray-600);
  border-color: var(--gray-600);
  color: var(--white);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Forms */
.form-label {
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-control,
.form-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
  background-color: var(--white);
  color: var(--gray-800);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
  outline: 0;
}

.form-text {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  margin-right: 0.5rem;
  background-color: var(--white);
  border: 1px solid var(--gray-400);
  transition: background-color var(--transition-fast) ease, border-color var(--transition-fast) ease;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.input-group-text {
  background-color: var(--gray-100);
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Tables */
.table {
  width: 100%;
  margin-bottom: 0;
  color: var(--gray-800);
  vertical-align: top;
  border-color: var(--gray-200);
  font-size: 0.875rem;
}

.table > thead {
  background-color: var(--gray-50);
}

.table > thead > tr > th {
  padding: 0.75rem 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
  text-transform: none;
  letter-spacing: 0;
  vertical-align: middle;
}

.table > tbody > tr > td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-200);
}

.table-hover > tbody > tr:hover {
  background-color: var(--gray-50);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--border-radius);
}

/* Badges & Labels */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.5em;
  font-size: 75%;
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius-full);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
}

.badge.bg-primary {
  background-color: var(--primary) !important;
  color: var(--white);
}

.badge.bg-secondary {
  background-color: var(--gray-500) !important;
  color: var(--white);
}

.badge.bg-success {
  background-color: var(--success) !important;
  color: var(--white);
}

.badge.bg-danger {
  background-color: var(--danger) !important;
  color: var(--white);
}

.badge.bg-warning {
  background-color: var(--warning) !important;
  color: var(--white);
}

.badge.bg-info {
  background-color: var(--info) !important;
  color: var(--white);
}

.badge.bg-light {
  background-color: var(--gray-100) !important;
  color: var(--gray-800);
}

.badge.bg-dark {
  background-color: var(--gray-800) !important;
  color: var(--white);
}

/* Alerts */
.alert {
  position: relative;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 0 solid transparent;
  border-radius: var(--border-radius);
}

.alert-info {
  color: #055160;
  background-color: #cff4fc;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
}

.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
}

/* Progress Bar */
.progress {
  display: flex;
  height: 0.5rem;
  overflow: hidden;
  background-color: var(--gray-200);
  border-radius: var(--border-radius-full);
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

/* Lists */
.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: var(--border-radius);
}

.list-group-item {
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--gray-700);
  background-color: var(--white);
  border: 1px solid var(--gray-200);
}

.list-group-item:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.list-group-item:last-child {
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}

.list-group-flush .list-group-item {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.list-group-flush:first-child .list-group-item:first-child {
  border-top: 0;
}

.list-group-flush:last-child .list-group-item:last-child {
  border-bottom: 0;
}

/* Login & Auth Pages */
.login-container {
  max-width: 450px;
  width: 100%;
  margin: 3rem auto;
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo h1 {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.login-logo p {
  color: var(--gray-500);
  margin-bottom: 0;
}

/* Footer */
.footer {
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer p {
  margin-bottom: 0;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Spacing & Layout Utilities */
.bg-light {
  background-color: var(--gray-100) !important;
}

.bg-white {
  background-color: var(--white) !important;
}

.bg-primary-light {
  background-color: rgba(37, 99, 235, 0.1) !important;
  color: var(--primary) !important;
}

.bg-success-light {
  background-color: rgba(5, 150, 105, 0.1) !important;
  color: var(--success) !important;
}

.bg-warning-light {
  background-color: rgba(217, 119, 6, 0.1) !important;
  color: var(--warning) !important;
}

.bg-danger-light {
  background-color: rgba(220, 38, 38, 0.1) !important;
  color: var(--danger) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-muted {
  color: var(--gray-500) !important;
}

.border-top {
  border-top: 1px solid var(--gray-200) !important;
}

.border-end {
  border-right: 1px solid var(--gray-200) !important;
}

.border-bottom {
  border-bottom: 1px solid var(--gray-200) !important;
}

.border-start {
  border-left: 1px solid var(--gray-200) !important;
}

.rounded {
  border-radius: var(--border-radius) !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

/* Responsive Utilities */
@media (max-width: 991.98px) {
  .navbar .nav-link {
    padding: 0.5rem 0.75rem;
  }
  
  .card-header {
    padding: 1rem 1.25rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .table > thead > tr > th,
  .table > tbody > tr > td {
    padding: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .card-header {
    padding: 0.875rem 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
  }
  
  h1, .h1 {
    font-size: 1.5rem;
  }
  
  .navbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 575.98px) {
  .d-flex.justify-content-between.flex-wrap {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-responsive {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .table-responsive-stacked {
    display: block;
  }
  
  .table-responsive-stacked thead {
    display: none;
  }
  
  .table-responsive-stacked tbody,
  .table-responsive-stacked tr {
    display: block;
    width: 100%;
  }
  
  .table-responsive-stacked td {
    display: flex;
    text-align: right;
    border-bottom: 0;
    padding: 0.5rem 1rem;
  }
  
  .table-responsive-stacked td::before {
    content: attr(data-label);
    font-weight: var(--font-weight-semibold);
    margin-right: auto;
    text-align: left;
  }
  
  .table-responsive-stacked tr {
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
  }
}

/* Animations & Transitions */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
  animation: slideUp 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Loading Indicators */
.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 0.25rem solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  width: 100px;
  height: 100px;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Card hover effects */
.card.hoverable {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.hoverable:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ===== Customer Form Styles ===== */
/* Progress Steps */
.funnel-progress {
  margin: 2rem 0;
}

.funnel-progress .progress {
  height: 0.5rem;
  border-radius: var(--border-radius-full);
  background-color: var(--gray-200);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.funnel-progress .progress-bar {
  background-color: var(--primary);
  border-radius: var(--border-radius-full);
  transition: width 0.6s ease;
}

.funnel-progress p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* Progress Steps - Multi-step indicator */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gray-200);
  z-index: 1;
}

.progress-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-count {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-300);
  color: var(--gray-600);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  transition: all var(--transition) ease;
}

.step-description {
  font-size: 0.875rem;
  color: var(--gray-600);
  max-width: 100px;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-step-active .step-count {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.progress-step-active .step-description {
  color: var(--primary);
  font-weight: var(--font-weight-medium);
}

.progress-step-completed .step-count {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.progress-step-completed .step-count::after {
  content: "✓";
}

/* Customer Forms */
.customer-form-card {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  border: none;
  overflow: hidden;
  transition: transform var(--transition) ease, box-shadow var(--transition) ease;
  margin-bottom: 2rem;
}

.customer-form-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-xl);
}

.customer-form-card .card-header {
  background-color: var(--primary);
  color: var(--white);
  border-bottom: none;
  padding: 1.25rem 1.5rem;
}

.customer-form-card .card-header h3 {
  margin-bottom: 0;
  color: var(--white);
  font-weight: var(--font-weight-semibold);
}

.customer-form-card .card-body {
  padding: 2rem;
}

.customer-form-card .form-label {
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.customer-form-card .form-control,
.customer-form-card .form-select {
  padding: 0.75rem 1rem;
  border-color: var(--gray-300);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.customer-form-card .form-control:focus,
.customer-form-card .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

.customer-form-card .form-text {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* File Upload Styling */
.file-upload-container {
  border: 2px dashed var(--gray-300);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  background-color: var(--gray-50);
  transition: all var(--transition-fast) ease;
  cursor: pointer;
}

.file-upload-container:hover {
  border-color: var(--primary-light);
  background-color: rgba(96, 165, 250, 0.05);
}

.file-upload-container i {
  font-size: 2.5rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
  display: block;
}

.file-upload-container p {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.file-upload-container .form-text {
  color: var(--gray-500);
}

/* Document List */
.document-list {
  margin: 1.5rem 0;
}

.document-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  background: var(--white);
  margin-bottom: 0.75rem;
  transition: all var(--transition-fast) ease;
}

.document-item:hover {
  border-color: var(--primary-light);
  background-color: var(--gray-50);
}

.document-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--border-radius);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.document-info {
  flex: 1;
}

.document-info h6 {
  margin-bottom: 0.25rem;
  font-weight: var(--font-weight-medium);
}

.document-info .document-meta {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.document-status {
  margin-left: 1rem;
}

/* Summary Page Styles */
.summary-section {
  margin-bottom: 2rem;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.summary-section-header {
  background-color: var(--gray-100);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.summary-section-header h5 {
  margin-bottom: 0;
  color: var(--gray-800);
  font-weight: var(--font-weight-medium);
}

.summary-section-body {
  padding: 1.5rem;
}

.summary-row {
  display: flex;
  margin-bottom: 0.75rem;
}

.summary-label {
  width: 40%;
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
}

.summary-value {
  width: 60%;
  color: var(--gray-900);
}

/* Thank You Page Styles */
.thank-you-card {
  text-align: center;
  border: none;
  box-shadow: var(--box-shadow-lg);
  border-radius: var(--border-radius-lg);
}

.thank-you-card .card-header {
  background-color: var(--success);
  color: var(--white);
  border-bottom: none;
  padding: 1.5rem;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--success);
  margin: 2rem 0;
}

.thank-you-card .card-body {
  padding: 2rem;
}

.thank-you-card h4 {
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.thank-you-card .lead {
  color: var(--gray-700);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Calculation Animation */
.calculation-container {
  text-align: center;
  padding: 2rem 0;
}

.calculation-spinner {
  color: var(--primary);
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
}

.calculation-result {
  animation: fadeInUp 0.8s ease forwards;
}

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

.result-card {
  background-color: var(--success-light);
  border-left: 4px solid var(--success);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.result-amount {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--success);
  margin: 1rem 0;
}

/* Responsive adjustments for customer forms */
@media (max-width: 767.98px) {
  .customer-form-card .card-body {
    padding: 1.5rem;
  }
  
  .progress-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .progress-steps::before {
    display: none;
  }
  
  .progress-step {
    flex: 0 0 calc(33.333% - 1rem);
    margin-bottom: 1rem;
  }
  
  .summary-row {
    flex-direction: column;
  }
  
  .summary-label, 
  .summary-value {
    width: 100%;
  }
  
  .summary-label {
    margin-bottom: 0.25rem;
  }
  
  .file-upload-container {
    padding: 1.5rem;
  }
}
