@font-face {
  font-family: 'LexendDeca';
  src: url('/assets/fonts/LexendDeca-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* Custom styles for the website */

:root {
  --primary-color: #252b4b;
  --secondary-color: #ec665a;
  --primary-light: #3a4270;
  --primary-dark: #1a1f3a;
  --text-color: #333;
  --text-muted: #6c757d;
}

/* School card styles */
.school-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.school-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.school-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.school-info {
    display: flex;
    flex: 1;
}

.school-icon {
    font-size: 24px;
    color: #252b4b;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.school-details {
    flex: 1;
}

.school-actions {
    margin-left: 10px;
}

.delete-school-btn {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-school-btn:hover {
    opacity: 1;
}

/* Common button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Provider card styles */
.anbieter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.anbieter-actions {
    margin-left: 10px;
}

.delete-provider-btn {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-provider-btn:hover {
    opacity: 1;
}

:root {
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-padding: 2rem;
  --form-control-padding: 0.75rem 1rem;
  --button-padding: 0.75rem 2rem;
}

/* Body padding to account for fixed header */

body {
  padding-top: 80px;
  background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), 
              url('../img/background-pattern.svg');
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  font-family: 'LexendDeca', sans-serif;
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 43, 75, 0.1) 0%, rgba(37, 43, 75, 0) 70%);
  z-index: -1;
}

h1, h2, h3, h4, h5, h6, .display-4, .card-title, .eligibility-card h4, .option-card h3, .benefit-card .benefit-name, .reason-card .reason-name {
  font-family: 'LexendDeca', 'Overpass', sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Navbar styles */

.navbar {
  background-color: rgba(37, 43, 75, 0.98) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.75rem;
  color: white !important;
  padding: 0;
  letter-spacing: 0.5px;
}

.navbar-brand img {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  margin-right: 10px;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  color: rgba(255,255,255,0.9) !important;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-color) !important;
}

/* Center navigation items */

.navbar-nav {
  margin: 0 auto;
}

/* Login button styles */

.btn-outline-light {
  border-color: rgba(255,255,255,0.9);
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

/* Mobile adjustments */

@media (max-width: 991px) {
  .navbar-nav {
    margin: 1rem 0;
  }
}

@media (max-width: 991px) {
  .btn-outline-light {
    margin-top: 0.5rem;
  }
}

/* Main content styles */

main {
  flex: 1;
  padding: 2rem 0;
}

/* Add accent elements */

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: var(--button-padding);
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 43, 75, 0.2);
}

.text-primary {
  color: #252b4b !important;
}

.bg-primary {
  background-color: #252b4b !important;
}

/* Footer styles */

footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
  margin-top: auto;
}

/* Sticky footer only for application pages (not public footer) */
footer:not(.text-light.py-4) {
  position: sticky;
  bottom: 0;
  width: 100%;
  z-index: 1000;
}

footer h5 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--secondary-color) !important;
}

.social-links a {
  font-size: 1.5rem;
  transition: all 0.3s ease;
  color: rgba(255,255,255,0.9) !important;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--secondary-color) !important;
}

/* Add some accent elements */

.accent-border {
  border-bottom: 3px solid var(--secondary-color);
  width: 50px;
  margin: 1rem auto;
}

/* Responsive adjustments */

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .action-button {
    padding: 0.75rem;
  }

  .action-button.large {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  footer {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .social-links {
    margin-top: 1rem;
  }
}

/* Language Selection Panels */

.language-panel {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.language-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: var(--secondary-color);
}

.flag-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Country-specific flag images */

.language-panel[data-lang="de"] .flag-icon {
  background-image: url('https://flagcdn.com/w80/de.png');
}

.language-panel[data-lang="en"] .flag-icon {
  background-image: url('https://flagcdn.com/w80/gb.png');
}

.language-panel[data-lang="fr"] .flag-icon {
  background-image: url('https://flagcdn.com/w80/fr.png');
}

.language-panel[data-lang="es"] .flag-icon {
  background-image: url('https://flagcdn.com/w80/es.png');
}

.language-panel[data-lang="it"] .flag-icon {
  background-image: url('https://flagcdn.com/w80/it.png');
}

.language-panel[data-lang="pl"] .flag-icon {
  background-image: url('https://flagcdn.com/w80/pl.png');
}

.language-panel[data-lang="ru"] .flag-icon {
  background-image: url('https://flagcdn.com/w80/ru.png');
}

.language-panel[data-lang="tr"] .flag-icon {
  background-image: url('https://flagcdn.com/w80/tr.png');
}

.language-name {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-color);
}

.language-panel:hover .language-name {
  color: var(--secondary-color);
}

/* Postal Code Input Styles */

.postal-code-container {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.postal-code-container h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.postal-code-container .input-group {
  max-width: 400px;
  margin: 0 auto;
}

.postal-code-container .form-control {
  border: 2px solid var(--primary-color);
  border-radius: 5px 0 0 5px;
  font-size: 1.25rem;
  padding: 0.75rem 1rem;
  text-align: center;
}

.postal-code-container .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: none;
}

.postal-code-container .btn {
  border-radius: 0 5px 5px 0;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* Animation for showing postal code section */

#postalCodeSection {
  animation: fadeIn 0.5s ease-in-out;
}

/* Benefit Selection Styles */

.benefit-container {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.benefit-container h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.benefit-card {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: var(--secondary-color);
}

.benefit-card.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.benefit-card.active .benefit-icon, .benefit-card.active .benefit-name {
  color: white;
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.benefit-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  line-height: 1.4;
}

.benefit-card:hover .benefit-icon, .benefit-card:hover .benefit-name {
  color: var(--secondary-color);
}

/* Animation for showing benefit section */

#benefitSection {
  animation: fadeIn 0.5s ease-in-out;
}

/* Compact Form Styles - Reduce margins and field sizes */
.container.py-5 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

/* Apply to all containers in formulare directory */
.container .mb-3 {
  margin-bottom: 1rem !important;
}

.container .mb-4 {
  margin-bottom: 1.5rem !important;
}

.container .form-control,
.container .form-select {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.9rem !important;
}

.container .form-label {
  margin-bottom: 0.25rem !important;
  font-size: 0.9rem !important;
  font-weight: 500;
}

.container .form-check {
  margin-bottom: 0.5rem !important;
}

.container .form-check-label {
  font-size: 0.9rem !important;
}

.container textarea {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.9rem !important;
}

.container .btn {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.9rem !important;
}

.container h1 {
  font-size: 2rem !important;
  margin-bottom: 1rem !important;
}

.container .card {
  margin-bottom: 1.5rem !important;
}

.container .card-body {
  padding: 1rem !important;
}

.container .card-header {
  padding: 0.75rem 1rem !important;
}

.container .list-group-item {
  padding: 0.5rem 1rem !important;
  font-size: 0.9rem !important;
}

.container .list-group {
  margin-bottom: 1.5rem !important;
}

/* Reduce input group sizes */
.container .input-group .form-control,
.container .input-group .form-select {
  padding: 0.5rem 0.75rem !important;
}

/* Reduce alert margins */
.container .alert {
  margin-bottom: 1rem !important;
  padding: 0.75rem 1rem !important;
}

/* Reduce table cell padding */
.container .table td,
.container .table th {
  padding: 0.5rem !important;
}

/* Extra compact styles for modal forms - Target the specific modal structure */
.modal-body .container,
.modal-body div[class*="container"] {
  padding: 0.25rem !important;
}

.modal-body h1 {
  font-size: 1.4rem !important;
  margin-bottom: 0.5rem !important;
}

.modal-body h2 {
  font-size: 1.2rem !important;
  margin-bottom: 0.4rem !important;
}

.modal-body h3,
.modal-body h4,
.modal-body h5 {
  font-size: 1rem !important;
  margin-bottom: 0.3rem !important;
}

.modal-body .mb-3 {
  margin-bottom: 0.5rem !important;
}

.modal-body .mb-4 {
  margin-bottom: 0.75rem !important;
}

.modal-body .card {
  margin-bottom: 0.75rem !important;
}

.modal-body .card-body {
  padding: 0.5rem !important;
}

.modal-body .card-header {
  padding: 0.4rem 0.5rem !important;
}

.modal-body .form-control,
.modal-body .form-select {
  padding: 0.25rem 0.4rem !important;
  font-size: 0.8rem !important;
  height: auto !important;
  min-height: 30px !important;
}

.modal-body .form-label {
  margin-bottom: 0.15rem !important;
  font-size: 0.8rem !important;
  font-weight: 500;
}

.modal-body .form-check {
  margin-bottom: 0.5rem !important;
}

.modal-body .form-check-label {
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
}

.modal-body textarea {
  padding: 0.25rem 0.4rem !important;
  font-size: 0.8rem !important;
  min-height: 50px !important;
  resize: vertical !important;
}

.modal-body .btn {
  padding: 0.25rem 0.75rem !important;
  font-size: 0.8rem !important;
}

.modal-body .list-group-item {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.8rem !important;
}

.modal-body .alert {
  margin-bottom: 0.5rem !important;
  padding: 0.4rem 0.5rem !important;
  font-size: 0.8rem !important;
}

.modal-body p {
  margin-bottom: 0.3rem !important;
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
}

.modal-body .row {
  margin-bottom: 0.3rem !important;
}

/* Make modal select dropdowns more compact */
.modal-body select option {
  padding: 0.2rem !important;
}

/* Reduce spacing in form groups */
.modal-body .form-group {
  margin-bottom: 0.5rem !important;
}

/* Normal sized radio buttons in modals */
.modal-body .form-check-input {
  margin-top: 0.125rem !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  flex-shrink: 0 !important;
  margin-right: 0.5rem !important;
}

/* Reduce table spacing in modals */
.modal-body .table {
  font-size: 0.8rem !important;
  margin-bottom: 0.5rem !important;
}

.modal-body .table td,
.modal-body .table th {
  padding: 0.25rem !important;
}

/* Compact invalid feedback */
.modal-body .invalid-feedback {
  font-size: 0.75rem !important;
  margin-top: 0.1rem !important;
}

/* Reduce input group spacing */
.modal-body .input-group {
  margin-bottom: 0.5rem !important;
}

/* Make form sections more compact */
.modal-body .col-md-6,
.modal-body .col-md-4,
.modal-body .col-md-3 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

/* Compact list groups */
.modal-body .list-group {
  margin-bottom: 0.75rem !important;
}

/* Reduce modal body padding itself */
.modal-body {
  padding: 0.75rem !important;
}

/* Remove overly aggressive font size rule - let individual elements have proper sizes */

.modal-dialog .modal-content .modal-body h1 {
  font-size: 1.3rem !important;
  margin-bottom: 0.4rem !important;
}

.modal-dialog .modal-content .modal-body h2 {
  font-size: 1.1rem !important;
  margin-bottom: 0.3rem !important;
}

.modal-dialog .modal-content .modal-body h3,
.modal-dialog .modal-content .modal-body h4,
.modal-dialog .modal-content .modal-body h5 {
  font-size: 0.95rem !important;
  margin-bottom: 0.25rem !important;
}


.modal-dialog .modal-content .modal-body textarea {
 min-height: 45px !important;
  resize: vertical !important;
}

.modal-dialog .modal-content .modal-body .btn {
  padding: 0.2rem 0.6rem !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
}

.modal-dialog .modal-content .modal-body .card {
  margin-bottom: 0.6rem !important;
  border-width: 1px !important;
}

.modal-dialog .modal-content .modal-body .card-header {
  padding: 0.3rem 0.4rem !important;
  font-size: 0.8rem !important;
}

.modal-dialog .modal-content .modal-body .card-body {
  padding: 0.4rem !important;
}

.modal-dialog .modal-content .modal-body .mb-3,
.modal-dialog .modal-content .modal-body .mb-4 {
  margin-bottom: 0.4rem !important;
}

.modal-dialog .modal-content .modal-body .form-label {
  margin-bottom: 0.1rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
}

.modal-dialog .modal-content .modal-body .form-check {
  margin-bottom: 0.5rem !important;
}



.modal-dialog .modal-content .modal-body .form-check-label {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.modal-dialog .modal-content .modal-body .alert {
  padding: 0.3rem 0.4rem !important;
  margin-bottom: 0.4rem !important;
  font-size: 0.75rem !important;
}

.modal-dialog .modal-content .modal-body p {
  margin-bottom: 0.25rem !important;
  font-size: 0.8rem !important;
  line-height: 1.3 !important;
}

.modal-dialog .modal-content .modal-body .list-group-item {
  padding: 0.2rem 0.4rem !important;
  font-size: 0.75rem !important;
}

.modal-dialog .modal-content .modal-body .table td,
.modal-dialog .modal-content .modal-body .table th {
  padding: 0.2rem !important;
  font-size: 0.75rem !important;
}

/* Remove container margins completely in modals */
.modal-dialog .modal-content .modal-body .container,
.modal-dialog .modal-content .modal-body div[class*="container"] {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Compact rows and columns */
.modal-dialog .modal-content .modal-body .row {
  margin: 0 !important;
  margin-bottom: 0.3rem !important;
}

.modal-dialog .modal-content .modal-body .col-md-6,
.modal-dialog .modal-content .modal-body .col-md-4,
.modal-dialog .modal-content .modal-body .col-md-3,
.modal-dialog .modal-content .modal-body [class*="col-"] {
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

/* Normal padding for modal forms */
.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body {
  padding: 1rem !important;
  font-size: 1rem !important;
}

/* Normal sized form styling for modal forms - not overly compact */
.modal-body h1 {
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
}

.modal-body h2, .modal-body h3, .modal-body h4, .modal-body h5 {
  font-size: 1.1rem !important;
  margin-bottom: 0.75rem !important;
}

.modal-body .form-label {
  font-size: 1rem !important;
  margin-bottom: 0.5rem !important;
  font-weight: 500 !important;
}

.modal-body .form-control,
.modal-body .form-select,
.modal-body input[type="text"],
.modal-body input[type="number"],
.modal-body input[type="email"],
.modal-body input[type="file"],
.modal-body select,
.modal-body textarea {
  padding: 0.5rem 0.75rem !important;
  font-size: 1rem !important;
  height: 38px !important;
  line-height: 1.5 !important;
}

.modal-body textarea {
  min-height: 80px !important;
  height: auto !important;
  resize: vertical !important;
}

.modal-body .form-check {
  margin-bottom: 0.75rem !important;
}

.modal-body .form-check-label {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.modal-body .btn {
  padding: 0.5rem 1rem !important;
  font-size: 1rem !important;
}

.modal-body .card {
  margin-bottom: 0.75rem !important;
}

.modal-body .card-header {
  padding: 0.4rem 0.5rem !important;
}

.modal-body .card-body {
  padding: 0.5rem !important;
}

.modal-body .mb-3,
.modal-body .mb-4 {
  margin-bottom: 0.5rem !important;
}

.modal-body .mb-2 {
  margin-bottom: 0.4rem !important;
}

.modal-body .mb-1 {
  margin-bottom: 0.25rem !important;
}

.modal-body p {
  font-size: 0.85rem !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.3 !important;
}

.modal-body .list-group-item {
  padding: 0.3rem 0.5rem !important;
  font-size: 0.85rem !important;
}

.modal-body .alert {
  padding: 0.4rem 0.5rem !important;
  font-size: 0.85rem !important;
  margin-bottom: 0.5rem !important;
}

.modal-body .table td,
.modal-body .table th {
  padding: 0.3rem !important;
  font-size: 0.85rem !important;
}

.modal-body .invalid-feedback {
  font-size: 0.75rem !important;
  margin-top: 0.1rem !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body h1 {
  font-size: 1.2rem !important;
  margin: 0 0 0.3rem 0 !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .form-control,
.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .form-select {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.9rem !important;
  height: 38px !important;
  line-height: 1.5 !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .form-label {
  font-size: 0.9rem !important;
  margin-bottom: 0.25rem !important;
  font-weight: 500 !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .btn {
  padding: 0.375rem 0.75rem !important;
  font-size: 0.9rem !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .card {
  margin-bottom: 0.5rem !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .card-body {
  padding: 0.3rem !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .card-header {
  padding: 0.25rem 0.3rem !important;
  font-size: 0.75rem !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .mb-3,
.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .mb-4 {
  margin-bottom: 1rem !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body textarea {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.9rem !important;
  min-height: 80px !important;
  line-height: 1.5 !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .form-check {
  margin-bottom: 0.75rem !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .form-check-label {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}


.modal-body .form-check {
  display: flex !important;
  align-items: flex-start !important;
  margin-bottom: 0.5rem !important;
}

.modal-body .form-check-input {
  margin-top: 0.25rem !important;
  margin-right: 0.5rem !important;
  margin-left: 0.75rem;
  width: 1rem !important;
  height: 1rem !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.modal-body .form-check-label {
  flex: 1 !important;
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0 !important;
  cursor: pointer !important;
}


/* Fix form-check container layout */
.modal-body .form-check:not(.form-switch) {
  padding-left: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
}

/* Ensure modal has proper width for form content */
.modal-w-2-3 {
  max-width: 66.666667% !important;
  min-width: 500px !important;
}

@media (max-width: 768px) {
  .modal-w-2-3 {
    max-width: 95% !important;
    min-width: auto !important;
  }
}


.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .form-check {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  padding-left: 0 !important;
  margin-bottom: 0.75rem !important;
}

.modal.fade.show .modal-dialog.modal-w-2-3 .modal-content .modal-body .form-check-label {
  flex: 1 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
  cursor: pointer !important;
}

/* Reason Selection Styles */

.reason-container {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.reason-container h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.reason-card {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reason-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: var(--secondary-color);
}

.reason-card.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.reason-card.active .reason-icon, .reason-card.active .reason-name {
  color: white;
}

.reason-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.reason-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  line-height: 1.4;
  padding: 0 0.5rem;
}

.reason-card:hover .reason-icon, .reason-card:hover .reason-name {
  color: var(--secondary-color);
}

/* Animation for showing reason section */

#reasonSection {
  animation: fadeIn 0.5s ease-in-out;
}

/* Amount Input Styles */

.amount-container {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.amount-container h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.amount-container .input-group {
  max-width: 400px;
  margin: 0 auto;
}

.amount-container .form-control {
  font-size: 1.25rem;
  text-align: right;
  padding-right: 1rem;
}

.amount-container .input-group-text {
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.amount-container .btn {
  padding: 0.5rem 2rem;
  font-weight: 500;
}

.amount-container .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Animation for showing amount section */

#amountSection {
  animation: fadeIn 0.5s ease-in-out;
}

/* Family Members List Styling */
.family-members .list-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.family-members .list-group-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border: 1px solid #dee2e6;
    margin-bottom: -1px;
    background-color: #ffffff;
}

.family-members .list-group-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.family-members .list-group-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-bottom: 0;
}

.family-members .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.family-members .list-group-item.list-group-item-primary {
    border-left: 3px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.family-members .list-group-item .fa-star {
    font-size: 1.2rem;
}

.family-members .badge {
    font-size: 0.7rem;
}

.family-members .text-muted.small {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Employee Card Styles */
.employee-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.employee-card:hover {
    transform: translateY(-2px);
}

/* Address Card Styling */
#familyMemberModal .card {
    border-color: #ced4da;
    border-radius: 0.375rem;
}

#familyMemberModal .card-body {
    padding: 1rem;
}

#familyMemberModal .card .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Family Member Card Styles */
.family-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.family-member-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.primary-contact-toggle .btn {
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.family-member-card.primary-contact {
    border-left: 3px solid #ffc107;
    background-color: rgba(255, 193, 7, 0.05);
}

/* History Scrollable Container */
.history-container {
    height: 400px;
    max-height: 400px;
    overflow-y: scroll;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 1rem;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
    display: block;
    position: relative;
}

/* History Cards */
.history-card {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.history-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.history-icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.history-content {
    flex: 1;
}

.history-title {
    font-weight: 600;
    color: var(--primary-color);
}

.history-date, .history-status, .history-user {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.history-text {
    background-color: white;
    padding: 0.75rem;
    border-radius: 0.25rem;
    border-left: 3px solid var(--primary-color);
    margin-top: 0.5rem;
}

/* Search Results List Styles */
.search-list-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.search-list-item:hover {
    border-left: 3px solid var(--primary-color);
    background-color: rgba(37, 43, 75, 0.05);
}

.search-list-item .badge {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .search-result-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .search-result-header .badge-container {
        margin-top: 0.5rem;
    }
}

.employee-header {
    margin-bottom: 10px;
}

.employee-actions button {
    margin-left: 5px;
    border: 1px solid #252b4b !important;
    color: #252b4b !important;
    transition: all 0.3s ease;
}

.employee-actions button:hover {
    background-color: #252b4b !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Form control styling - only for modal forms */
.modal .form-control, 
.modal .form-select, 
.border-primary, .btn-primary,
.bg-primary, .text-primary {
    border-color: #252b4b !important;
}

.modal .form-control, 
.modal .form-select {
    border: 2px solid #252b4b !important;
}

/* Reset searchbar styling */
#searchInput, 
.search-section .input-group-text,
.search-section .btn-outline-secondary,
.search-container .form-control,
.search-container .btn-outline-secondary {
    border-color: #ced4da !important;
    border-width: 1px !important;
}

/* Fix navbar search button border radius */
.search-container .btn-outline-secondary {
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}

/* Vorlagen Page Styles */
/* Drag and Drop Area Styles */
.upload-area {
    border: 2px dashed #252b4b;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: rgba(37, 43, 75, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
}

.upload-area:hover, .upload-area.dragover {
    background-color: rgba(37, 43, 75, 0.1);
    border-color: #ec665a;
}

.upload-icon {
    font-size: 3rem;
    color: #252b4b;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.2rem;
    color: #252b4b;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: #6c757d;
    font-size: 0.9rem;
}

/* File List Styles */
.file-list {
    margin-top: 2rem;
}

.file-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.file-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.file-icon.pdf {
    color: #f44336;
}

.file-icon.word {
    color: #2196f3;
}

.file-info {
    flex-grow: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.file-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.file-actions button {
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-actions button:hover {
    background-color: rgba(0,0,0,0.05);
}

.file-actions .btn-view {
    color: #252b4b;
}

.file-actions .btn-delete {
    color: #dc3545;
}

/* Progress bar for uploads */
.progress {
    height: 5px;
    margin-top: 0.5rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #252b4b;
    opacity: 0.5;
}

/* Textbausteine Page Styles */
/* Template List Styles */
.template-list {
    margin-top: 2rem;
}

.template-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.template-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.template-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

.template-actions {
    display: flex;
    gap: 0.5rem;
}

.template-actions button {
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-actions button:hover {
    background-color: rgba(0,0,0,0.05);
}

.template-actions .btn-edit {
    color: #252b4b;
}

.template-actions .btn-delete {
    color: #dc3545;
}

.template-preview {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.template-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #f8f9fa);
}

/* Editor Styles */
.editor-container {
    margin-bottom: 2rem;
}

.ck-editor__editable {
    min-height: 300px;
}

/* Category badges */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.category-badge.antrag {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.category-badge.bescheid {
    background-color: #fce4ec;
    color: #880e4f;
}

.category-badge.mitteilung {
    background-color: #fff3e0;
    color: #e65100;
}

.category-badge.info {
    background-color: #f3e5f5;
    color: #4a148c;
}

/* Externe Applikationen Page Styles */
.app-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.app-card-header {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-card-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.app-card-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.app-card-body.show {
    padding: 1.25rem;
    max-height: 1000px; /* Arbitrary large value */
}

.app-card-content {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.25rem;
}

.rotate-icon {
    transition: transform 0.3s ease;
}

.rotate-icon.rotate {
    transform: rotate(180deg);
}

/* Provider Selection Styles */

.provider-container {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.provider-container h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.provider-container .input-group {
  max-width: 500px;
  margin: 0 auto;
}

.provider-container .form-select, .provider-container .form-control {
  font-size: 1.25rem;
  border: 2px solid var(--primary-color);
  border-radius: 5px 0 0 5px;
}

.provider-container .form-select:focus, .provider-container .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: none;
}

.provider-container .btn {
  border-radius: 0 5px 5px 0;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* Animation for showing provider section */

#providerSection {
  animation: fadeIn 0.5s ease-in-out;
}

/* Cost Payer Selection Styles */

.cost-payer-container {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cost-payer-container h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.cost-payer-container .input-group {
  max-width: 500px;
  margin: 0 auto;
}

.cost-payer-container .form-select, .cost-payer-container .form-control {
  font-size: 1.25rem;
  border: 2px solid var(--primary-color);
  border-radius: 5px 0 0 5px;
}

.cost-payer-container .form-select:focus, .cost-payer-container .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: none;
}

.cost-payer-container .btn {
  border-radius: 0 5px 5px 0;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* Animation for showing cost payer section */

#costPayerSection {
  animation: fadeIn 0.5s ease-in-out;
}

/* Parent Bank Details Styles */

.parent-bank-container {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.parent-bank-container h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.parent-bank-container .form-label {
  color: var(--primary-color);
  font-weight: 500;
  text-align: left;
  margin-bottom: 0.5rem;
}

.parent-bank-container .form-control {
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
}

.parent-bank-container .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: none;
}

.parent-bank-container .form-text {
  color: #666;
  font-size: 0.9rem;
  text-align: left;
  margin-top: 0.25rem;
}

.parent-bank-container .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Animation for showing parent bank section */

#parentBankSection {
  animation: fadeIn 0.5s ease-in-out;
}

/* Child Information Styles */

.child-container {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.child-container h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.child-container .form-label {
  color: var(--primary-color);
  font-weight: 500;
  text-align: left;
  margin-bottom: 0.5rem;
}

.child-container .form-control {
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
}

.child-container .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: none;
}

.child-container .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Animation for showing child section */

#childSection {
  animation: fadeIn 0.5s ease-in-out;
}

/* File Upload Styles */

.file-upload-container {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.file-upload-container h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.file-upload-container .form-label {
  color: var(--primary-color);
  font-weight: 500;
  text-align: left;
  margin-bottom: 0.5rem;
}

.file-upload-container .form-control {
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
}

.file-upload-container .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: none;
}

.file-upload-container .form-text {
  color: #666;
  font-size: 0.9rem;
  text-align: left;
  margin-top: 0.25rem;
}

.file-upload-container .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Drag and Drop Zone Styles */

.drag-drop-zone {
  border: 2px dashed var(--primary-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  margin-bottom: 1rem;
}

.drag-drop-zone:hover {
  border-color: var(--secondary-color);
  background-color: #f0f0f0;
}

.drag-drop-zone-active {
  border-color: var(--secondary-color);
  background-color: #f0f0f0;
  transform: scale(1.02);
}

.drag-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.drag-drop-content i {
  font-size: 3rem;
  color: var(--primary-color);
}

.drag-drop-content p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.drag-drop-content small {
  color: #666;
}

.drag-drop-zone input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

/* Animation for showing file upload section */

#fileUploadSection {
  animation: fadeIn 0.5s ease-in-out;
}

/* Success Section Styles */

.success-container {
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1.5rem;
}

.success-container h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.success-message {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.application-summary {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.application-summary h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.summary-item {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

.summary-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.summary-item strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.25rem;
}

.summary-item span {
  color: #666;
}

/* Animation for showing success section */

#successSection {
  animation: fadeIn 0.5s ease-in-out;
}

/* Progress Bar Styles */

.progress-container {
  position: relative;
  padding: 0 2rem;
}

.progress {
  height: 4px;
  background-color: #e9ecef;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.progress-bar {
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: -0.5rem;
}

.step {
  font-size: 0.875rem;
  color: #6c757d;
  text-align: center;
  position: relative;
  flex: 1;
}

.step::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 1rem;
  background-color: #e9ecef;
  border-radius: 50%;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.step.active {
  color: var(--primary-color);
  font-weight: 500;
}

.step.active::before {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.step.completed {
  color: var(--primary-color);
}

.step.completed::before {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Mobile adjustments for progress bar */

@media (max-width: 768px) {
  .progress-container {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .step {
    font-size: 0.75rem;
  }
}

/* Input Group Icon Styles */

.input-group-text {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
}

.input-group-text i {
  font-size: 1.25rem;
}

/* Form Label Icon Styles */

.form-label i {
  margin-right: 0.5rem;
  color: var(--primary-color);
  width: 1.25rem;
  text-align: center;
}

/* Button Icon Styles */

.btn i {
  margin-right: 0.5rem;
}

/* Success Icon Styles */

.success-icon i {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1.5rem;
}

/* Antrag stellen button styles */

a[href="eltern.html"].btn-primary {
  font-size: 1.5rem;
  padding: 1rem 3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

a[href="eltern.html"].btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Option Card Styles */
.option-card {
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.option-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.option-icon i {
    font-size: 2rem;
    color: white;
}

.option-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.option-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.option-card .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-card:hover .option-icon {
    background-color: var(--secondary-color);
}

.option-card:hover h3 {
    color: var(--secondary-color);
}

/* School Card Styles */
.school-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.school-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.school-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.school-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.school-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #252b4b;
    flex-shrink: 0;
}

.school-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-grow: 1;
}

.school-main-info {
    flex: 1;
}

.school-main-info h5 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.school-main-info p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.school-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    min-width: 150px;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* School Search Container Styles */
.search-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.search-container .form-control {
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
}

.search-container .btn {
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
}

/* Search Styles */
.search-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.search-input {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #e9ecef;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #252b4b;
    box-shadow: 0 0 0 0.25rem rgba(37, 43, 75, 0.25);
    outline: none;
}

.search-wrapper {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    background: white;
    color: #252b4b;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 150px;
}

.filter-select:focus {
    border-color: #252b4b;
    box-shadow: 0 0 0 0.25rem rgba(37, 43, 75, 0.25);
    outline: none;
}

.search-filters {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-button {
    padding: 0.5rem 1rem;
    border: 2px solid #252b4b;
    border-radius: 50px;
    background: white;
    color: #252b4b;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-button:hover, .filter-button.active {
    background: #252b4b;
    color: white;
}

/* Result Card Styles */
.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-card .person-details {
    flex: 1;
}

.result-card h3 {
    font-size: 1.2rem;
    color: #252b4b;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.result-card p {
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-card p i {
    width: 1.25rem;
    color: #252b4b;
}

.check-statuses {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 200px;
    padding-left: 2rem;
    border-left: 1px solid #e9ecef;
}

.check-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-label {
    color: #495057;
    font-weight: 500;
    min-width: 100px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge i {
    font-size: 1rem;
}

/* Status Colors */
.status-badge.verified {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.unverified {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.status-claimed {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.status-badge.status-claimed i {
    color: #1565c0;
}

.section-title {
    color: #252b4b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #252b4b;
}

.back-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid #252b4b;
    color: #252b4b;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: white;
    margin-bottom: 1.5rem;
}

.back-button:hover {
    background-color: #252b4b;
    color: white;
}

.back-button i {
    margin-right: 0.5rem;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.check-statuses {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid #e9ecef;
}

.check-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
}

.status-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Lunch Provider Styles */
.search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

.result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
}

.result-item:hover {
    background-color: #f8f9fa;
}

.selected-persons {
    margin-top: 1rem;
}

.selected-person {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.total-amount {
    font-size: 1.25rem;
    font-weight: 500;
    background-color: #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
    text-align: right;
}

/* Remove spinner arrows from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Person Creation Styles */
.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-label {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: var(--border-radius) !important;
    padding: var(--form-control-padding) !important;
    border: 1px solid #ced4da !important;
    transition: var(--transition) !important;
}

/* Enhanced form control styles */
.form-control:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Add subtle shadow to form fields */
.form-floating > .form-control {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure form fields have visible borders even when not focused */
input.form-control, 
select.form-control,
textarea.form-control {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #ced4da !important;
}

/* Standard height for textareas */
.textarea-standard {
    height: 100px;
}

/* Specific styles for form fields in identitaet_sachgrund_form */
.identitaet-form .form-control {
    border: 2px solid #ced4da !important;
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.identitaet-form .form-control:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.identitaet-form .form-floating > label {
    color: #495057 !important;
    font-weight: 500 !important;
}

/* Make form fields in identitaet_sachgrund_form more visible */
.identitaet-form .form-floating {
    margin-bottom: 1rem !important;
}

/* Form card styles */
.card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
}

.card-header h5 {
    margin-bottom: 0;
}

/* Common UI Elements */
.navbar-brand-img {
    margin-right: 10px;
}

.footer-bg {
    background-color: rgba(37, 43, 75, 0.95) !important;
}

.text-center {
    text-align: center;
}

.btn-primary-custom {
    background-color: #252b4b;
    color: white;
}

/* Layout Elements */
.spacer {
    width: 100px;
}

.employee-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

/* Dynamic Elements */
.hidden {
    display: none !important;
}

.search-results {
    position: absolute;
    width: calc(100% - 45px);
    z-index: 1000;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    left: 45px;
}

.school-suggestions {
    position: absolute;
    width: calc(100% - 45px);
    z-index: 1000;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    left: 45px;
}

.child-suggestions {
    display: none;
}

/* Template Icons */
.template-icon {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.template-icon.blue {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.template-icon.pink {
    background-color: #fce4ec;
    color: #880e4f;
}

.template-icon.green {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.template-icon.orange {
    background-color: #fff3e0;
    color: #e65100;
}

.template-icon.cyan {
    background-color: #e0f7fa;
    color: #006064;
}

.template-icon.purple {
    background-color: #f3e5f5;
    color: #4a148c;
}

.template-icon.red {
    background-color: #ffebee;
    color: #b71c1c;
}

.template-icon.deep-orange {
    background-color: #fbe9e7;
    color: #bf360c;
}

.template-icon.indigo {
    background-color: #e8eaf6;
    color: #1a237e;
}

/* Main content styles */
main.container {
  position: relative;
}

/* Hero section styles */
.hero-section {
  position: relative;
  margin-bottom: 5rem;
}

.hero-image-left, .hero-image-right {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.hero-image-left:hover, .hero-image-right:hover {
  transform: scale(1.02);
}

.hero-image-left::after, .hero-image-right::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(37, 43, 75, 0.2), rgba(37, 43, 75, 0.4));
}

.hero-content {
  transform: translateY(-50%);
  transition: all 0.5s ease;
}

.hero-content:hover {
  transform: translateY(-50%) scale(1.02);
}

/* Card styles */
.card {
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 1rem;
}





/* Button styles */
.btn-primary {
  background-color: #252b4b;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #1a1f36;
  border-color: #1a1f36;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: white;
}

.btn-secondary:hover {
  background-color: #d85449;
  border-color: #d85449;
  color: white;
}

/* Accent elements */
.accent-border {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #252b4b, #4a90e2);
  margin: 0 auto 30px;
  border-radius: 2px;
}

/* Footer styles */
.footer-content {
  background-color: rgba(37, 43, 75, 0.95) !important;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.footer-content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: #252b4b;
  border-radius: 10px;
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Modern card styles */
.eligibility-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.eligibility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.eligibility-card i {
  font-size: 2.5rem;
  color: #252b4b;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.eligibility-card:hover i {
  transform: scale(1.1);
}

.eligibility-card h4 {
  color: #252b4b;
  font-weight: 600;
  margin-bottom: 1rem;
}

.eligibility-card p {
  color: #6c757d;
  margin-bottom: 0;
}

/* Section spacing */
section {
  padding: 3rem 0;
}

.row.g-4 {
  --bs-gutter-y: 1rem;
}

.mb-5 {
  margin-bottom: 2rem !important;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

.p-4 {
  padding: 1rem !important;
}

.p-5 {
  padding: 1.5rem !important;
}

.p-6 {
  padding: 2rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    width: 95% !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* Search Container Styles */
.search-container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.search-input {
  font-size: 1.2rem;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 2px solid #e9ecef;
  width: 100%;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #252b4b;
  box-shadow: 0 0 0 0.25rem rgba(37, 43, 75, 0.25);
  outline: none;
}

/* Utility Classes */
.mb-3 {
  margin-bottom: 1rem;
}

/* Action Button Styles */
.action-button {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid #252b4b;
  color: #252b4b;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.2s ease;
  background-color: white;
  text-align: left;
}

.action-button:hover {
  background-color: #252b4b;
  color: white;
}

.action-button i {
  margin-right: 0.5rem;
  width: 1.5rem;
  text-align: center;
}

.action-button.large {
  padding: 1.5rem;
  font-size: 1.2rem;
}

.action-button.large i {
  font-size: 1.4rem;
}

.action-button.person {
  border-color: #252b4b;
  color: #252b4b;
}

.action-button.person:hover {
  background-color: #252b4b;
  color: white;
}

/* Section Title Styles */
.section-title {
  color: #252b4b;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #252b4b;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: #252b4b;
  color: white;
  border-radius: 10px 10px 0 0 !important;
  padding: 1rem;
}

.card-body {
  padding: 1.5rem;
}

/* List Group Styles */
.list-group-item {
  border: none;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background-color: white;
  border-radius: 5px !important;
}

.list-group-item:hover {
  background-color: #e9ecef;
}

.list-group-item i {
  width: 24px;
  text-align: center;
  margin-right: 0.5rem;
  color: #252b4b;
}

/* View All Button Styles */
.view-all-btn {
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  background-color: #f8f9fa;
  border: 2px solid #252b4b;
  color: #252b4b;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-all-btn:hover {
  background-color: #252b4b;
  color: white;
}

.view-all-btn i {
  margin-right: 0.5rem;
}

/* Badge Styles */
.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
}

.badge-primary {
  background-color: #252b4b;
}

.badge-warning {
  background-color: #e65100;
}

.badge-success {
  background-color: #2e7d32;
}

/* Input Group Styles */
.input-group {
  background-color: white;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.input-group:focus-within {
  box-shadow: 0 4px 15px rgba(37, 43, 75, 0.15);
  transform: translateY(-1px);
}

.input-group-text {
  background-color: transparent;
  border: none;
  color: #252b4b;
  padding-left: 1.5rem;
}

.form-control {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  color: #252b4b;
}

.form-control:focus {
  box-shadow: none;
  border: none;
}

.form-control::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

/* List Entry Styles */
.list-entry {
  background: white;
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e9ecef;
  border-left: 4px solid #252b4b; /* Main dark blue color */
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-entry:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.list-entry-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.list-entry-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #252b4b; /* Main dark blue color */
  margin-right: 1rem;
  flex-shrink: 0;
}

.list-entry-details {
  flex: 1;
}

.list-entry-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #343a40;
}

.list-entry-address {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}

.list-entry-actions {
  display: flex;
  align-items: center;
}

.list-container {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  overflow: hidden;
  background-color: #f8f9fa;
}

.list-container .list-entry {
  border-radius: 0;
  border-left-width: 4px;
  margin-bottom: 0;
  border-bottom: 1px solid #dee2e6;
}

.list-container .list-entry:last-child {
  border-bottom: none;
}

.anbieter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.anbieter-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.anbieter-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #252b4b;
}

.anbieter-details {
  flex-grow: 1;
}

.anbieter-actions {
  display: flex;
  gap: 0.5rem;
}

/* Foerderer Type Badge Styles */
.type-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.type-jobcenter {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.type-sozialamt {
  background-color: #e8f5e9;
  color: #1b5e20;
}

.type-asyl {
  background-color: #fff3e0;
  color: #e65100;
}

.type-kinderzuschlag {
  background-color: #f3e5f5;
  color: #4a148c;
}

.type-wohngeld {
  background-color: #e0f7fa;
  color: #006064;
}

/* Foerderer Action Button Styles */
.foerderer-actions .btn-outline-primary {
  color: #252b4b;
  border: none;
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin: 0 5px;
  background-color: transparent;
}

.foerderer-actions .btn-outline-primary:hover {
  background-color: #252b4b;
  color: white;
  transform: scale(1.05);
}

.foerderer-actions .btn-outline-primary i {
  font-size: 1.3rem;
}

/* Foerderer Card Styles */
.foerderer-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.foerderer-card:hover {
    transform: translateY(-2px);
}

.foerderer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.foerderer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.foerderer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #252b4b;
}

.foerderer-details {
    flex-grow: 1;
}

.foerderer-actions {
    display: flex;
    gap: 0.5rem;
}

/* Foerderer Type Badge Styles */
.type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.type-jobcenter {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.type-sozialamt {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.type-asyl {
    background-color: #fff3e0;
    color: #e65100;
}

.type-kinderzuschlag {
    background-color: #f3e5f5;
    color: #4a148c;
}

.type-wohngeld {
    background-color: #e0f7fa;
    color: #006064;
}

/* Foerderer Action Button Styles */
.foerderer-actions .btn-outline-primary {
    color: #252b4b;
    border: none;
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 5px;
    background-color: transparent;
}

.foerderer-actions .btn-outline-primary:hover {
    background-color: #252b4b;
    color: white;
    transform: scale(1.05);
}

.foerderer-actions .btn-outline-primary i {
    font-size: 1.3rem;
}

/* Identity Form Card Styles */
.form-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.form-section-title {
    color: #252b4b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #252b4b;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Verification Options Styles */
.verification-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.verification-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.verification-btn:hover {
    border-color: #252b4b;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.verification-btn i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #252b4b;
}

.verification-btn span {
    font-weight: 500;
    font-size: 1rem;
}

.verification-btn.verified {
    border-color: #28a745;
    background: #f0fff4;
}

.verification-btn.verified i {
    color: #28a745;
}

.verification-btn.pending {
    border-color: #e65100;
    background: #fff3e0;
}

.verification-btn.pending i {
    color: #e65100;
}

.verification-btn.unverified {
    border-color: #dc3545;
    background: #fff5f5;
}

.verification-btn.unverified i {
    color: #dc3545;
}

/* Page Title and Accent Styles */
.page-title {
    color: #252b4b;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.accent-border {
    height: 4px;
    background: linear-gradient(90deg, #252b4b, #4a90e2);
    border-radius: 2px;
    margin-top: 1rem;
}

/* Process Container Styles */
.process-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* Form Section Styles */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.form-section h3 {
    color: #252b4b;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #252b4b;
}

/* Task Card Styles */
.task-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.task-title {
    font-weight: 500;
    color: #252b4b;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.task-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.task-info {
    display: flex;
    gap: 1rem;
}

.task-person {
    font-weight: 500;
}

.task-az {
    color: #6c757d;
}

.task-date {
    color: #6c757d;
    font-size: 0.9rem;
    white-space: nowrap;
}

.task-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.task-description {
    color: #495057;
    margin-bottom: 1rem;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Department Badge Styles */
.department-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #252b4b;
    color: white;
}

.department-badge.akdn {
    background-color: #0d6efd;
}

.department-badge.bonnausweise {
    background-color: #198754;
}

.department-badge.doxis {
    background-color: #6f42c1;
}

.department-badge.fiori {
    background-color: #fd7e14;
}

/* Status Badge Styles */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-in-bearbeitung {
    background-color: #ffc107;
    color: #000;
}

.status-nicht-zugewiesen {
    background-color: #6c757d;
    color: white;
}

.status-abgeschlossen {
    background-color: #198754;
    color: white;
}

/* Filter Container Styles */
.filter-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #252b4b;
    margin-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Task Link Styles */
.task-link {
    color: #252b4b;
    text-decoration: none;
}

.task-link:hover {
    color: #0d6efd;
}

/* Due Date Styles */
.due-date {
    color: #dc3545;
    font-weight: 500;
}

.due-date.warning {
    color: #ffc107;
}

.due-date.safe {
    color: #28a745;
}

/* Tasklist Container Styles */
.tasklist-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.tasklist-header {
    margin-bottom: 1.5rem;
}

.tasklist-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.tasklist-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tasklist-table th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    padding: 1rem;
    font-weight: 600;
    color: #495057;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
}

.tasklist-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    vertical-align: middle;
}

.tasklist-table tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tasklist-table tr:hover {
    background-color: #f8f9fa;
}

.tasklist-table tr.selected {
    background-color: #e9ecef;
}

.task-name {
    font-weight: 500;
    color: #252b4b;
    margin-bottom: 0.25rem;
}

.task-process {
    color: #6c757d;
    font-size: 0.85rem;
}

.task-date {
    color: #6c757d;
    font-size: 0.9rem;
    white-space: nowrap;
}

.task-assignee {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f8f9fa;
}

.pagination-btn.active {
    background-color: #252b4b;
    color: white;
    border-color: #252b4b;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-number {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-number:hover {
    background-color: #f8f9fa;
}

.page-number.active {
    background-color: #252b4b;
    color: white;
    border-color: #252b4b;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-item:hover {
    background-color: #f8f9fa;
}

.filter-item.active {
    background-color: #e9ecef;
    color: #252b4b;
    font-weight: 500;
}

.filter-item i {
    width: 20px;
    text-align: center;
}

.filter-item .badge {
    font-size: 0.75rem;
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.task-details-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: auto;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.task-details-container:empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

#taskDetails {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#taskDetails:empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-details-header {
    margin-bottom: 1.5rem;
}

.task-details-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.task-details-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.task-details-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.task-details-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.task-details-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.task-details-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Profile Page Styles */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #252b4b;
    flex-shrink: 0;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    color: #252b4b;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.profile-az {
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-az i {
    font-size: 1.1rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
    flex-shrink: 0;
}

.profile-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-actions .btn i {
    font-size: 1.1rem;
}

.profile-actions .btn-primary {
    background-color: #252b4b;
    border-color: #252b4b;
}

.profile-actions .btn-primary:hover {
    background-color: #1a1f36;
    border-color: #1a1f36;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 43, 75, 0.2);
}

.profile-actions .btn-outline-primary {
    color: #252b4b;
    border-color: #252b4b;
}

.profile-actions .btn-outline-primary:hover {
    background-color: #252b4b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 43, 75, 0.2);
}

.profile-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.profile-section h3 {
    color: #252b4b;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.profile-section h3 i {
    margin-right: 0.5rem;
    color: #6c757d;
}

.scrollable-section {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.application-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.application-card h4 {
    color: #252b4b;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.application-card p {
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.application-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.application-status.approved {
    background: #d4edda;
    color: #155724;
}

.application-status.pending {
    background: #fff3cd;
    color: #856404;
}

.application-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.comment-history {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.comment-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.comment-date {
    color: #6c757d;
    font-weight: 500;
}

.comment-text {
    color: #495057;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.document-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.document-card:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
}

.document-icon {
    text-align: center;
    margin-bottom: 0.25rem;
}

.document-info h4 {
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-info p {
    font-size: 0.8rem;
    margin: 0;
    color: #6c757d;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.drop-zone:hover {
    border-color: #0d6efd;
    background-color: #f1f3f5;
}

.drop-zone.dragover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.drop-zone-content {
    color: #6c757d;
}

.drop-zone-content i {
    color: #0d6efd;
}

.action-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.personal-data {
    padding: 1rem 0;
}

.data-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.data-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.data-item label {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.data-item span {
    display: block;
    color: #212529;
    font-size: 1rem;
    line-height: 1.5;
}

.data-actions {
    text-align: right;
}

.data-actions .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.data-actions .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Personal Data Edit Mode */
.personal-data .edit-mode {
    margin-top: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem;
    width: 100%;
    transition: border-color 0.2s ease;
}

.personal-data .edit-mode:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.personal-data textarea.edit-mode {
    min-height: 80px;
    resize: vertical;
}

.edit-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-actions .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.edit-actions .btn-success {
    background-color: #198754;
    border-color: #198754;
}

.edit-actions .btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.edit-actions .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.edit-actions .btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Address Edit Mode */
.personal-data .edit-mode .row {
    margin-bottom: 0.5rem;
}

.personal-data .edit-mode .form-control {
    font-size: 0.9rem;
    padding: 0.5rem;
}

.personal-data .edit-mode .form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.personal-data .edit-mode .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Address View Mode */
.personal-data .view-mode {
    line-height: 1.6;
}

.personal-data .data-item:has(.view-mode) {
    padding-bottom: 1rem;
}

/* Family Section */
.family-data {
    padding: 1rem;
}

.family-members {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.family-member-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.family-member-card:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.family-member-info {
    flex: 1;
}

.family-member-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.25rem;
}

.family-member-relation {
    font-size: 0.875rem;
    color: #6c757d;
}

.family-member-actions {
    margin-left: 1rem;
}

.family-member-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.family-member-actions .btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.family-member-actions .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

.text-muted {
    color: #6c757d;
    font-style: italic;
    padding: 0.5rem 0;
}

/* Search Result Card Styles */
.search-result-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    cursor: pointer;
    max-width: 220px;
    margin: 0 auto;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.search-result-card .card-body {
    padding: 0.5rem;
}

.search-result-card .card-footer {
    border-top: 1px solid #dee2e6;
    transition: all 0.3s ease;
    padding: 0.25rem;
}

.search-result-card:hover .card-footer {
    background-color: var(--primary-color) !important;
}

.search-result-card:hover .card-footer span {
    color: white !important;
}

.search-result-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-align: left;
}

.search-result-card .card-text {
    text-align: left;
}

.search-result-card .text-muted {
    font-size: 0.75rem;
    padding: 0.1rem 0;
}

.search-result-card .card-footer span {
    font-size: 0.8rem;
    text-align: left;
    display: block;
}

/* Validation Date Range */
.validation-date-range {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.validation-date-range .input-group-text {
    background-color: #fff;
    border-right: none;
}

.validation-date-range .form-control {
    border-left: none;
}

.validation-date-range .form-control:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.validation-date-range .form-control:focus + .input-group-text {
    border-color: #dee2e6;
}

.validation-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.validation-status .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.validation-status .badge.bg-secondary {
    background-color: #6c757d !important;
}

.validation-status .badge.bg-success {
    background-color: #198754 !important;
}

.validation-status .badge.bg-danger {
    background-color: #dc3545 !important;
}

.validation-status .badge.bg-info {
    background-color: #0dcaf0 !important;
}

/* Family Member Modal */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #212529;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
    padding: 1rem 1.5rem;
}

#familyMemberForm .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

#familyMemberForm .form-control,
#familyMemberForm .form-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#familyMemberForm .form-control:focus,
#familyMemberForm .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#familyMemberForm .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.modal .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.modal .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.modal .btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* School Dropdown */
.personal-data .form-select {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #212529;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
}

.personal-data .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.personal-data .form-select option {
    padding: 0.5rem;
}

.personal-data .form-select option:first-child {
    color: #6c757d;
}

/* History Cards */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem;
}

.history-user {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.history-user i {
    margin-right: 0.25rem;
    font-size: 0.8rem;
}

.history-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #0d6efd;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.history-card:hover::before {
    opacity: 1;
}

.history-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-right: 1.25rem;
    transition: all 0.3s ease;
}

.history-card:hover .history-icon {
    background-color: #e7f1ff;
    transform: scale(1.05);
}

.history-icon i {
    font-size: 1.5rem;
    color: #0d6efd;
    transition: transform 0.3s ease;
}

.history-card:hover .history-icon i {
    transform: scale(1.1);
}

.history-content {
    flex: 1;
    min-width: 0;
}

.history-title {
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 0.375rem;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.history-card:hover .history-title {
    color: #0d6efd;
}

.history-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.history-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: #adb5bd;
}

.history-status {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.history-status:not([class*="bg-"]) {
    background-color: #f8f9fa;
    color: #495057;
}

/* Status Colors */
.history-status.verifiziert {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.history-status.aktualisiert {
    background-color: #e3f2fd;
    color: #1565c0;
}

.history-status.hochgeladen {
    background-color: #e8eaf6;
    color: #3949ab;
}

.history-card:hover .history-status {
    transform: translateY(-1px);
}

/* Add subtle animation for status badges */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.history-status.verifiziert,
.history-status.aktualisiert,
.history-status.hochgeladen {
    animation: pulse 2s infinite;
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover:not(:disabled) {
    color: white;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(236, 101, 90, 0.2);
}

.btn-outline-secondary:disabled {
    color: #adb5bd;
    border-color: #adb5bd;
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.btn-outline-secondary i {
    color: inherit;
}

.nav-tabs .nav-link {
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border: none;
    background-color: rgba(37, 43, 75, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border: none;
    font-weight: 600;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-tabs .nav-link i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.tasklist-container {
        height: auto !important;
        overflow: visible !important;
    }
    
    .tasklist-content {
        height: auto !important;
        overflow: visible !important;
    }
    
    .tasklist-table {
        height: auto !important;
    }
        .address-line, .contact-line {
        margin-bottom: 0.25rem;
    }
    .address-line:last-child, .contact-line:last-child {
        margin-bottom: 0;
    }
    
    /* Contact line styling for person profile */
    .contact-line {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    
    /* Status check styling */
    .check-status {
        display: flex;
        align-items: center;
    }
    
    .status-label {
        margin-right: 0.5rem;
    }
    
    .status-badge {
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.875rem;
        display: inline-flex;
        align-items: center;
    }
    
    .status-badge.verified {
        background-color: #d4edda;
        color: #155724;
    }
    
    .status-badge.pending {
        background-color: #fff3cd;
        color: #856404;
    }
    
    .status-badge i {
        margin-right: 0.25rem;
    }
    
    .data-item {
        margin-bottom: 1rem;
    }
    .data-item label {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
        .check-status {
        display: flex;
        align-items: center;
        white-space: nowrap;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
        border-radius: 0.375rem;
        background-color: rgba(248, 249, 250, 0.7);
    }
    
    @media (min-width: 768px) {
        .check-status {
            height: 100%;
            margin-bottom: 0;
        }
    }
    
    .status-label {
        margin-right: 0.25rem;
        font-size: 0.875rem;
        font-weight: 500;
    }
    
    .status-badge {
        padding: 0.15rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.85rem;
        display: inline-flex;
        align-items: center;
        min-width: 5.5rem;
        justify-content: center;
    }
    .status-badge.verified {
        background-color: #d4edda;
        color: #155724;
    }
    .status-badge.pending {
        background-color: #fff3cd;
        color: #856404;
    }
    .status-badge i {
        margin-right: 0.25rem;
    }
    
    /* Family member styles */
    .family-member-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        margin-bottom: 0.75rem;
        border: 1px solid #e9ecef;
        border-radius: 0.375rem;
        background-color: #fff;
    }
    .family-member-info h4 {
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        font-weight: 600;
    }
    .family-member-details {
        color: #6c757d;
        font-size: 0.9rem;
    }
    .family-member-details div {
        margin-bottom: 0.25rem;
    }
    
    /* Scrollable containers */
    .scrollable-container {
        max-height: 350px;
        overflow-y: auto;
        padding-right: 8px;
        margin-bottom: 1rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(37, 43, 75, 0.3) transparent;
    }
    
    .scrollable-container::-webkit-scrollbar {
        width: 6px;
    }
    
    .scrollable-container::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .scrollable-container::-webkit-scrollbar-thumb {
        background-color: rgba(37, 43, 75, 0.3);
        border-radius: 3px;
    }
    
    .scrollable-container::-webkit-scrollbar-thumb:hover {
        background-color: rgba(37, 43, 75, 0.5);
    }
    
    /* Comments styles */
    .comments-list {
        padding: 0.5rem;
        background-color: #f8f9fa;
        border-radius: 0.5rem;
    }
    
    .comments-list .alert-info {
        margin: 0.5rem 0;
        background-color: rgba(37, 43, 75, 0.05);
        border-color: rgba(37, 43, 75, 0.1);
        color: var(--primary-color);
    }
    
    .comment-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 0.5rem;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .comment-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .comment-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .comment-title {
        font-weight: 600;
        font-size: 1.1rem;
        color: var(--primary-color);
    }
    
    .comment-date {
        color: #6c757d;
        font-size: 0.85rem;
        background-color: #f8f9fa;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
    }
    
    .comment-content {
        color: #212529;
        font-size: 1rem;
        margin-bottom: 0.75rem;
        line-height: 1.5;
        padding: 0.25rem 0;
    }
    
    .comment-author {
        color: #6c757d;
        font-size: 0.9rem;
        text-align: right;
        font-style: italic;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid #f0f0f0;
    }
    
    /* Family member styles */
    .family-members {
        margin-top: 1rem;
    }
    
    .family-member-card {
        background-color: #fff;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border: 1px solid #e9ecef;
        position: relative;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .family-member-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .family-member-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .family-member-name {
        font-weight: 600;
        font-size: 1.1rem;
        color: var(--primary-color);
    }
    
    .family-member-relation {
        color: #6c757d;
        font-size: 0.9rem;
        background-color: #f8f9fa;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
    }
    
    .family-member-details {
        margin-bottom: 0.75rem;
    }
    
    .family-member-details div {
        margin-bottom: 0.25rem;
        color: #495057;
    }
    
    .family-member-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px solid #f0f0f0;
    }
    
    /* History styles */
    .history-list {
        margin-top: 1rem;
    }
    
    .history-card {
        background-color: #fff;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border: 1px solid #e9ecef;
        display: flex;
        align-items: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .history-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .history-icon {
        width: 40px;
        height: 40px;
        background-color: #f8f9fa;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
        color: var(--primary-color);
    }
    
    .history-content {
        flex: 1;
    }
    
    .history-title {
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 0.25rem;
    }
    
    .history-date {
        font-size: 0.875rem;
        color: #6c757d;
        margin-bottom: 0.25rem;
    }
    
    .history-status {
        font-size: 0.875rem;
        font-weight: 500;
        color: #28a745;
    }
    
    .history-text {
        font-size: 0.9rem;
        color: #495057;
        padding: 0.5rem;
        background-color: #f8f9fa;
        border-radius: 0.25rem;
        border-left: 3px solid #dee2e6;
    }
    
    /* Document upload styles */
    .drop-zone {
        border: 2px dashed #dee2e6;
        border-radius: 0.5rem;
        padding: 2rem;
        text-align: center;
        cursor: pointer;
        transition: border-color 0.3s ease, background-color 0.3s ease;
    }
    
    .drop-zone:hover {
        border-color: var(--primary-color);
        background-color: #f8f9fa;
    }
    
    .drop-zone-active {
        border-color: var(--primary-color);
        background-color: #f8f9fa;
    }
    
    .drop-zone-content {
        color: #6c757d;
    }
    
    .drop-zone-content i {
        color: var(--primary-color);
    }
    
    .documents-list {
        margin-top: 1rem;
    }
    
    .documents-list .table {
        margin-bottom: 0;
    }
    
    .documents-list .table th {
        border-top: none;
        font-weight: 600;
        color: #495057;
    }

    /* Compact status badges */
    .status-badge.small {
        font-size: 0.85rem;
        padding: 0.1rem 0.4rem;
    }

    /* ID Numbers styling */
    .id-numbers-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .id-number-item {
        background-color: #f8f9fa;
        border-radius: 4px;
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
        border: 1px solid #dee2e6;
    }

    /* Compact document section */
    .compact-documents {
        margin-top: 1rem;
        font-size: 0.9rem;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 1rem;
    }

    .compact-documents .table {
        margin-bottom: 0;
    }

    .compact-documents .table th {
        padding: 0.5rem;
        font-size: 0.85rem;
        background-color: rgba(37, 43, 75, 0.03);
        border-bottom: 2px solid rgba(37, 43, 75, 0.1);
    }

    .compact-documents .table td {
        padding: 0.5rem;
        vertical-align: middle;
    }

    .compact-documents .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .compact-documents .alert {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Upload area */
    .upload-area {
        position: relative;
        cursor: pointer;
        border-radius: 0.25rem;
        transition: all 0.2s ease;
        border: 2px dashed #dee2e6;
        background-color: #f8f9fa;
    }

    .upload-area:hover {
        background-color: #f1f3f5;
        border-color: #ced4da;
    }

    .upload-area.dragging {
        background-color: rgba(37, 43, 75, 0.05);
        border-color: var(--primary-color);
        box-shadow: 0 0 0 1px var(--primary-color);
    }

    .upload-area.dragging button {
        background-color: var(--primary-dark) !important;
        color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }
    
    /* Process buttons styles */
    .action-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    .tooltip {
        transition: opacity 0.3s ease, visibility 0.3s ease;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 8px;
        padding: 6px 12px;
        background-color: #333;
        color: white;
        font-size: 0.875rem;
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        pointer-events: none;
        white-space: nowrap;
    }
    
    .tooltip::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent #333 transparent;
    }
    
    /* Document date input styling */
    #documentDate,
    #editFirstname,
    #editLastname {
        border-width: 2px;
        box-shadow: 0 0 5px rgba(37, 43, 75, 0.2);
        transition: all 0.3s ease;
    }
    
    #documentDate:focus,
    #editFirstname:focus,
    #editLastname:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 8px rgba(236, 102, 90, 0.4);
    }

/* Person Creation Page Styles */

/* Person Type Selector Styles */
.person-type-selector {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.person-type-btn {
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    margin: 0 0.5rem;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.person-type-btn:first-child {
    margin-left: 0;
}

.person-type-btn:last-child {
    margin-right: 0;
}

.person-type-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.person-type-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.person-type-btn:hover i {
    color: var(--secondary-color);
}

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

.person-type-btn.active i {
    color: white;
}

/* Conditional Fields Styles */
.conditional-fields {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.conditional-fields .form-label {
    color: var(--primary-color);
}

.conditional-fields .row > div {
    margin-bottom: 1rem;
}

/* Form Container Styles */
.form-container {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 1.5rem;
}

/* Form Input Styles */
.form-container .form-control,
.form-container .form-select {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-container .form-control:focus,
.form-container .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 43, 75, 0.25);
}

.form-container .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Alpine.js Transitions */
.transition {
    transition-property: all;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.transform {
    transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.-translate-y-4 {
    --tw-translate-y: -1rem;
}

.translate-y-0 {
    --tw-translate-y: 0px;
}

/* Form Field Spacing */
.form-container .row > div {
    margin-bottom: 1rem;
}

/* Submit Button Styling */
.form-container .btn-primary {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 43, 75, 0.3);
}

/*
  Apply 2/3 width to modals on medium screens and up,
  but cap the width at 1000px on very large screens.
*/
@media (min-width: 768px) {
  .modal-w-2-3 {
    /* Use the smaller value: 2/3 of viewport width OR 1000px */
    max-width: min(calc(100vw / 3 * 2), 1000px);
  }
}

/* Make modal dialogs more compact for forms */
.modal-dialog.modal-w-2-3 {
  margin: 1rem auto !important;
}

.modal-dialog.modal-w-2-3 .modal-content {
  border-radius: 0.5rem !important;
}

.modal-dialog.modal-w-2-3 .modal-header {
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.modal-dialog.modal-w-2-3 .modal-title {
  font-size: 1.1rem !important;
  margin: 0 !important;
}

.modal-dialog.modal-w-2-3 .modal-body {
  padding: 0.5rem !important;
  max-height: 70vh !important;
  overflow-y: auto !important;
}

/* Process Modal Improvements - Override ultra-compact styling */
.modal-lg .modal-body {
  padding: 1.5rem !important;
  font-size: 0.9rem !important;
  max-height: 75vh !important;
  overflow-y: auto !important;
}

.modal-lg .modal-body h1 {
  font-size: 1.4rem !important;
  margin-bottom: 1rem !important;
}

.modal-lg .modal-body .form-control,
.modal-lg .modal-body .form-select {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.9rem !important;
  height: auto !important;
  line-height: 1.5 !important;
  min-height: 38px !important;
}

.modal-lg .modal-body .form-label {
  font-size: 0.9rem !important;
  margin-bottom: 0.5rem !important;
  font-weight: 500 !important;
}

.modal-lg .modal-body .btn {
  padding: 0.5rem 1rem !important;
  font-size: 0.9rem !important;
  min-height: 38px !important;
}

.modal-lg .modal-body .form-check {
  margin-bottom: 0.75rem !important;
  display: flex !important;
  align-items: flex-start !important;
}

.modal-lg .modal-body .form-check-input {
  margin-top: 0.25rem !important;
  margin-right: 0.5rem !important;
  width: 1rem !important;
  height: 1rem !important;
  flex-shrink: 0 !important;
}

.modal-lg .modal-body .form-check-label {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  flex: 1 !important;
  cursor: pointer !important;
}

.modal-lg .modal-body .mb-2,
.modal-lg .modal-body .mb-3 {
  margin-bottom: 1rem !important;
}

.modal-lg .modal-body textarea {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.9rem !important;
  min-height: 80px !important;
  line-height: 1.5 !important;
  resize: vertical !important;
}

.modal-lg .modal-body .card {
  margin-bottom: 1rem !important;
}

.modal-lg .modal-body .card-body {
  padding: 1rem !important;
}

.modal-lg .modal-body .card-header {
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
}

/* Fix radio button groups specifically */
.modal-lg .modal-body .form-check:has(input[type="radio"]) {
  margin-bottom: 0.5rem !important;
}

/* Fallback for browsers without :has() support */
.modal-lg .modal-body .form-check {
  margin-bottom: 0.5rem !important;
}

.modal-lg .modal-body .form-check input[type="radio"] {
  width: 1rem !important;
  height: 1rem !important;
  margin-top: 0.25rem !important;
  margin-right: 0.5rem !important;
  flex-shrink: 0 !important;
}

.modal-lg .modal-body .form-check input[type="radio"] + label {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Ensure radio buttons maintain proper circular shape */
.modal-lg .modal-body input[type="radio"].form-check-input {
  border-radius: 50% !important;
  aspect-ratio: 1 !important;
  min-width: 1rem !important;
  max-width: 1rem !important;
  min-height: 1rem !important;
  max-height: 1rem !important;
}

/* Additional spacing improvements for nested radio groups */
.modal-lg .modal-body .form-check .form-check {
  margin-left: 1.5rem !important;
  margin-top: 0.5rem !important;
}

/* Handle conditional/nested field containers */
.modal-lg .modal-body .mt-3 {
  margin-top: 1rem !important;
  padding-left: 1rem !important;
  border-left: 3px solid #e9ecef !important;
}

/* Question labels that are not form-labels */
.modal-lg .modal-body .form-check:first-child {
  font-weight: 500 !important;
  margin-bottom: 0.75rem !important;
}

/* Improve spacing for question groups */
.modal-lg .modal-body .form-check.mb-3 {
  margin-bottom: 1.5rem !important;
}

.modal-lg .modal-body .form-check.mb-3 > .form-check {
  margin-left: 0 !important;
  margin-top: 0.25rem !important;
}

/* Modal header and footer improvements */
.modal-lg .modal-header {
  padding: 1rem 1.5rem !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.modal-lg .modal-title {
  font-size: 1.25rem !important;
  margin: 0 !important;
  font-weight: 600 !important;
}

.modal-lg .modal-footer {
  padding: 1rem 1.5rem !important;
  border-top: 1px solid #dee2e6 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .person-type-selector {
        flex-direction: column;
    }
    
    .modal-lg .modal-body {
        padding: 1rem !important;
    }
}
    
    .person-type-btn {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .person-type-btn:first-child {
        margin-top: 0;
    }
    
    .person-type-btn:last-child {
        margin-bottom: 0;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* ===== PERSON PAGE STYLES ===== */

/* Style for disabled process buttons */
.action-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f0f0f0 !important;
    color: #888 !important;
    border-color: #ddd !important;
}

/* Sticky header for person name */
.sticky-name-header {
    position: fixed;
    top: 70px; /* Matches the navbar height plus some padding */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 600px; /* Smaller max width */
    min-width: 300px; /* Minimum width */
    background-color: white;
    z-index: 1001;
    padding: 4px 12px; /* Reduced padding */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.sticky-name-header.scrolled {
    padding: 3px 10px;
}

.sticky-name-header .header-info {
    flex: 1;
}

.sticky-name-header .profile-name {
    color: var(--primary-color);
    font-weight: 600;
}

.sticky-name-header .birthdate-info {
    opacity: 0.8;
}

.sticky-name-header h1 {
    transition: font-size 0.3s ease;
}

.sticky-name-header.scrolled h1 {
    font-size: 2rem !important;
}

/* Compact sections for smaller screens */
.profile-section {
    padding: 1rem;
    margin-bottom: 1rem !important;
}

.profile-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem !important;
}

.data-item {
    margin-bottom: 0.75rem !important;
}

.data-item label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.data-item .view-mode,
.data-item .edit-mode {
    font-size: 0.9rem;
}

/* Compact form controls */
.person-page .form-control,
.person-page .form-select {
    padding: 0.375rem 0.5rem;
    font-size: 0.9rem;
}

/* Compact buttons */
.person-page .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Compact process buttons */
.action-button {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
}



.person-page .table-sm th,
.person-page .table-sm td {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

/* Compact upload area */
.upload-area {
    padding: 0.75rem !important;
}

/* Reduce spacing in address and contact sections */
.address-line,
.contact-line {
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

/* Compact ID numbers */
.id-numbers-list .id-number-item {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

/* Compact status badges */
.status-badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem;
}

/* Compact family members list */
.person-page .list-group-item {
    padding: 0.75rem !important;
}

.person-page .list-group-item .fw-bold {
    font-size: 0.95rem;
}

.person-page .list-group-item .text-muted.small {
    font-size: 0.8rem !important;
    line-height: 1.2;
}

.person-page .list-group-item .text-muted.small > div {
    margin-bottom: 0.1rem;
}

/* Additional compact optimizations */
.person-page .row {
    margin-bottom: 0.5rem;
}

.person-page .row:last-child {
    margin-bottom: 0;
}

/* Reduce spacing in nationality dropdown */
.person-page .form-select option {
    padding: 0.25rem 0.5rem;
}

/* Compact process buttons container */
.process-buttons {
    line-height: 1.2;
}

.process-buttons .relative {
    margin-bottom: 0.5rem !important;
}

/* Reduce container padding */
.person-page .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Compact back button */
.person-page .mb-3:first-child {
    margin-bottom: 1rem !important;
}

/* Excel-like history table */
.history-content .table-bordered {
    border: 2px solid #000 !important;
}

.history-content .table-bordered th,
.history-content .table-bordered td {
    border: 1px solid #000 !important;
    vertical-align: middle;
    text-align: left;
}

.history-content .table-bordered thead th {
    background-color: #f8f9fa !important;
    font-weight: bold;
    color: #000;
    border-bottom: 2px solid #000 !important;
}

.history-content .table-bordered tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.history-content .table-bordered tbody tr:hover {
    background-color: #e3f2fd !important;
}

/* Excel-like cell styling */
.history-content .table td,
.history-content .table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Validity period cell styling */
.history-content .table td:nth-child(2) {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

.history-content .table td:nth-child(2) div {
    margin-bottom: 0.1rem;
}

.history-content .table td:nth-child(2) div:last-child {
    margin-bottom: 0;
}

/* Status badges in Excel style */
.history-content .badge {
    border-radius: 2px;
    font-weight: normal;
}

/* Scrollable history table */
.history-table-container {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.history-table-container::-webkit-scrollbar {
    width: 8px;
}

.history-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.history-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.history-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Sticky header for scrollable table */
.history-content .sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa !important;
}

/* Filter controls styling */
.history-filters {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

.history-filters .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.history-filters .form-control-sm,
.history-filters .form-select-sm {
    font-size: 0.8rem;
}

/* Person Page Specific Styles - Duplicate removed */

/* Compact sections for smaller screens */
.profile-section {
    padding: 1rem;
    margin-bottom: 1rem !important;
}

.profile-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem !important;
}

.data-item {
    margin-bottom: 0.75rem !important;
}

.data-item label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.data-item .view-mode,
.data-item .edit-mode {
    font-size: 0.9rem;
}

/* Compact form controls - Person page specific */
[x-data="person"] .form-control,
[x-data="person"] .form-select {
    padding: 0.375rem 0.5rem !important;
    font-size: 0.9rem !important;
}

/* Compact buttons - Person page specific - Higher specificity */
main[x-data="person"] .btn.btn-sm,
.container[x-data="person"] .btn.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Override global button padding for person page */
main[x-data="person"] .btn,
.container[x-data="person"] .btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* Specific override for small buttons */
main[x-data="person"] .btn.btn-sm,
.container[x-data="person"] .btn.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
}

/* Compact process buttons */
.action-button {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
}


.table-sm th,
.table-sm td {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

/* Compact upload area */
.upload-area {
    padding: 0.75rem !important;
}

/* Reduce spacing in address and contact sections */
.address-line,
.contact-line,
.bank-line {
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

/* Compact ID numbers */
.id-numbers-list .id-number-item {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

/* Compact status badges */
.status-badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem;
}

/* Compact family members list */
.list-group-item {
    padding: 0.75rem !important;
}

.list-group-item .fw-bold {
    font-size: 0.95rem;
}

.list-group-item .text-muted.small {
    font-size: 0.8rem !important;
    line-height: 1.2;
}

.list-group-item .text-muted.small > div {
    margin-bottom: 0.1rem;
}

/* Additional compact optimizations */
.row {
    margin-bottom: 0.5rem;
}

.row:last-child {
    margin-bottom: 0;
}

/* Reduce spacing in nationality dropdown */
.form-select option {
    padding: 0.25rem 0.5rem;
}

/* Event History List Styling */
.event-history-list .list-group-item {
    padding: 0.75rem !important;
    transition: all 0.2s ease;
}

.event-history-list .list-group-item:hover {
    background-color: rgba(0, 123, 255, 0.05) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-history-list .list-group-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.event-history-list .list-group-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-bottom: 0;
}

/* History Toggle Button Styling */
[x-data="person"] .btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

[x-data="person"] .btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* History section specific button sizing - Higher specificity */
main[x-data="person"] .profile-section .btn.btn-sm,
.container[x-data="person"] .profile-section .btn.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
    transform: none !important;
    box-shadow: none !important;
}

main[x-data="person"] .profile-section .btn.btn-primary,
.container[x-data="person"] .profile-section .btn.btn-primary {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
    transform: none !important;
    box-shadow: none !important;
}

main[x-data="person"] .profile-section .btn.btn-outline-primary,
.container[x-data="person"] .profile-section .btn.btn-outline-primary {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
    transform: none !important;
    box-shadow: none !important;
}

main[x-data="person"] .profile-section .btn.btn-primary:hover,
.container[x-data="person"] .profile-section .btn.btn-primary:hover {
    transform: none !important;
    box-shadow: none !important;
}

main[x-data="person"] .profile-section .btn.btn-outline-primary:hover,
.container[x-data="person"] .profile-section .btn.btn-outline-primary:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Ensure bottom edit buttons match top edit buttons exactly - Higher specificity */
main[x-data="person"] .edit-mode .btn.btn-secondary,
main[x-data="person"] .edit-actions .btn.btn-secondary,
.container[x-data="person"] .edit-mode .btn.btn-secondary,
.container[x-data="person"] .edit-actions .btn.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    border-radius: 0.375rem !important;
    transform: none !important;
    box-shadow: none !important;
}

main[x-data="person"] .edit-mode .btn.btn-secondary:hover,
main[x-data="person"] .edit-actions .btn.btn-secondary:hover,
.container[x-data="person"] .edit-mode .btn.btn-secondary:hover,
.container[x-data="person"] .edit-actions .btn.btn-secondary:hover {
    background-color: #5c636a !important;
    border-color: #565e64 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

main[x-data="person"] .edit-mode .btn.btn-success,
main[x-data="person"] .edit-actions .btn.btn-success,
.container[x-data="person"] .edit-mode .btn.btn-success,
.container[x-data="person"] .edit-actions .btn.btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    border-radius: 0.375rem !important;
    transform: none !important;
    box-shadow: none !important;
}

main[x-data="person"] .edit-mode .btn.btn-success:hover,
main[x-data="person"] .edit-actions .btn.btn-success:hover,
.container[x-data="person"] .edit-mode .btn.btn-success:hover,
.container[x-data="person"] .edit-actions .btn.btn-success:hover {
    background-color: #157347 !important;
    border-color: #146c43 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Compact process buttons container */
.process-buttons {
    line-height: 1.2;
}

.process-buttons .relative {
    margin-bottom: 0.5rem !important;
}

/* Reduce container padding */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Compact back button */
.mb-3:first-child {
    margin-bottom: 1rem !important;
}

/* Excel-like history table */
.history-content .table-bordered,
.fund-reasons-content .table-bordered {
    border: 2px solid #000 !important;
}

.history-content .table-bordered th,
.history-content .table-bordered td,
.fund-reasons-content .table-bordered td,
.fund-reasons-content .table-bordered th  {
    border: 1px solid #000 !important;
    vertical-align: middle;
    text-align: left;
}

.history-content .table-bordered thead th,
.fund-reasons-content .table-bordered thead th {
    background-color: #f8f9fa !important;
    font-weight: bold;
    color: #000;
    border-bottom: 2px solid #000 !important;
}

.history-content .table-bordered tbody tr:nth-child(even),
.fund-reasons-content .table-bordered tbody tr:nth-child(even)  {
    background-color: #f9f9f9;
}

.history-content .table-bordered tbody tr:hover,
.fund-reasons-content .table-bordered tbody tr:hover {
    background-color: #e3f2fd !important;
}

/* Excel-like cell styling */
.history-content .table td,
.history-content .table th,
.fund-reasons-content .table td,
.fund-reasons-content .table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Status badges in Excel style */
.history-content .badge {
    border-radius: 2px;
    font-weight: normal;
}

/* Scrollable history table */
.history-table-container,
.fund-reasons-content {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.history-table-container::-webkit-scrollbar {
    width: 8px;
}

.history-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.history-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.history-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Sticky header for scrollable table */
.history-content .sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa !important;
}
/* Responsive breakpoints for sticky header to match Bootstrap container */
@media (max-width: 575.98px) {
    .sticky-name-header {
        left: 15px !important;
        right: 15px !important;
        max-width: none !important;
        padding: 6px 15px !important;
    }
    .sticky-name-header.scrolled {
        padding: 4px 15px !important;
    }
    .sticky-name-header .profile-name {
        font-size: 1.3rem !important;
    }
    .sticky-name-header .birthdate-info {
        font-size: 0.8rem !important;
    }
}

@media (min-width: 576px) {
    .sticky-name-header {
        max-width: 540px !important;
    }
}

@media (min-width: 768px) {
    .sticky-name-header {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {
    .sticky-name-header {
        max-width: 960px !important;
    }
}

@media (min-width: 1200px) {
    .sticky-name-header {
        max-width: 1140px !important;
    }
}

/* FINAL OVERRIDE: Fix modal form elements to normal sizes - highest specificity - Updated 2025-08-13 */
.modal.fade.show .modal-dialog .modal-content .modal-body .form-control,
.modal.fade.show .modal-dialog .modal-content .modal-body .form-select,
.modal.fade.show .modal-dialog .modal-content .modal-body input[type="text"],
.modal.fade.show .modal-dialog .modal-content .modal-body input[type="number"],
.modal.fade.show .modal-dialog .modal-content .modal-body input[type="email"],
.modal.fade.show .modal-dialog .modal-content .modal-body input[type="file"],
.modal.fade.show .modal-dialog .modal-content .modal-body select {
  padding: 0.5rem 0.75rem !important;
  font-size: 1rem !important;
  height: 38px !important;
  line-height: 1.5 !important;
}

.modal.fade.show .modal-dialog .modal-content .modal-body textarea {
  padding: 0.5rem 0.75rem !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.modal.fade.show .modal-dialog .modal-content .modal-body textarea {
  height: auto !important;
  min-height: 80px !important;
}

.modal.fade.show .modal-dialog .modal-content .modal-body .form-label {
  font-size: 1rem !important;
  margin-bottom: 0.5rem !important;
}



.modal.fade.show .modal-dialog .modal-content .modal-body .form-check-label {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.modal.fade.show .modal-dialog .modal-content .modal-body .btn {
  padding: 0.5rem 1rem !important;
  font-size: 1rem !important;
}

.modal.fade.show .modal-dialog .modal-content .modal-body h1 {
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
}

.modal.fade.show .modal-dialog .modal-content .modal-body h2,
.modal.fade.show .modal-dialog .modal-content .modal-body h3,
.modal.fade.show .modal-dialog .modal-content .modal-body h4,
.modal.fade.show .modal-dialog .modal-content .modal-body h5 {
  font-size: 1.1rem !important;
  margin-bottom: 0.75rem !important;
}

.modal.fade.show .modal-dialog .modal-content .modal-body .mb-3,
.modal.fade.show .modal-dialog .modal-content .modal-body .mb-4 {
  margin-bottom: 1rem !important;
}

.modal.fade.show .modal-dialog .modal-content .modal-body .form-check {
  margin-bottom: 0.75rem !important;
}

.modal.fade.show .modal-dialog .modal-content .modal-body {
  padding: 1.5rem !important;
}
