/* ==========================================================================
   Grenlager — Einfaches CSS
   ========================================================================== */


/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #007bff;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --text-color: #333;
  --border-color: #e9ecef;
  --header-height: 64px;
  --transition: 0.3s ease;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
  --radius: 0.75rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  padding-top: var(--header-height);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__brand {
  display: flex;
  align-items: center;
}

.header__logo {
  width: 32px;
  height: 32px;
  margin-right: 0.75rem;
}

.header__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Hamburger Menu Toggle */
.menu-toggle {
  color: #475569;                                /* steuert die Linienfarbe */
  background: rgba(71, 85, 105, 0.10);
  border: 1px solid rgba(71, 85, 105, 0.25);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.menu-toggle:hover {
  background: rgba(71, 85, 105, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.15);
}

.menu-toggle:focus {
  outline: 2px solid currentColor;               /* statt --primary-color */
  outline-offset: 2px;
}

.menu-toggle__line {
  width: 20px;
  height: 2px;
  background: currentColor;                      /* Linien folgen Buttonfarbe */
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}

/* Hamburger Animation to X */
.menu-toggle.is-active .menu-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.is-active .menu-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* Sidebar Navigation */
.navigation-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1001;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.navigation-sidebar.open {
  visibility: visible;
  opacity: 1;
}

.navigation-sidebar__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.navigation-sidebar__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 0;
  overflow: hidden;
}

.navigation-sidebar.open .navigation-sidebar__content {
  transform: translateX(0);
}

.navigation-sidebar__header {
  padding: 1.25rem 1.5rem;
  background: #d9d9d945;                        /* statt Verlauf */
  color: #1f2937;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.navigation-sidebar__header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.navigation-sidebar__header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  position: relative;
  z-index: 1;
}

.navigation-sidebar__close {
  background: rgba(180, 180, 180, 0.2);
  border: none;
  color: rgb(80, 80, 80);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.navigation-sidebar__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.navigation-sidebar__menu {
  flex: 1;
  padding: 1.5rem 0;
}

.navigation-sidebar__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.navigation-sidebar__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(80, 79, 79, 0.08) 50%, 
    transparent 100%);
  transition: left 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.navigation-sidebar__item:hover::before {
  left: 0;
}

.navigation-sidebar__item:hover {
  background: #f8fafc;                        
  color: #1f2937;                             
  transform: none;                            
  border-left-color: var(--primary-color);    
  padding-left: 2rem;                         
}

.navigation-sidebar__item:focus {
  outline: 2px solid rgba(51, 150, 241, 0.08);
  outline-offset: -2px;
  background: rgba(102, 102, 102, 0.08);
}

.navigation-sidebar__arrow {
  font-size: 1.1rem;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0.6;
  color: #353535;
}

.navigation-sidebar__item:hover .navigation-sidebar__arrow {
  transform: translateX(4px);
  opacity: 1;
}

.navigation-sidebar__footer {
  padding: 1.5rem 2rem 2rem;
  background: rgba(248, 250, 252, 0.8);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.navigation-sidebar__footer small {
  color: #6c757d;
  text-align: center;
  display: block;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Content */
.main {
  min-height: calc(100vh - var(--header-height));
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
}

.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero__content {
  text-align: center;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 3rem;
}

.hero__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

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

.card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.card__text {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.card__link {
  color: #999;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: static;
}

.card__link:hover {
  color: #555555;
}

/* Make entire card clickable */
.card__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--light-color);
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.section__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.section__text {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

/* Placeholder Boxes */
.login-placeholder,
.feature-placeholder {
  background: white;
  border: 2px dashed var(--border-color);
  border-radius: 0.5rem;
  padding: 3rem;
  color: #6c757d;
  font-size: 1.1rem;
}


/* Responsive */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__subtitle {
    font-size: 1.1rem;
  }
  
  .hero__cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section__title {
    font-size: 1.75rem;
  }
  
  .navigation-sidebar__content {
    width: 100%;
    max-width: 100vw;
    border-radius: 0;
  }
  
  .navigation-sidebar__item {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .navigation-sidebar__header {
    padding: 1.5rem;
  }
  
  .navigation-sidebar__footer {
    padding: 1.25rem 1.5rem 1.5rem;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--grenlager-primary), #0056b3);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
}

/* Alert Enhancements */
.alert {
  border: none;
  border-radius: 0.5rem;
  border-left: 4px solid;
}

.alert-info {
  border-left-color: #0dcaf0;
  background-color: rgba(13, 202, 240, 0.1);
}

.alert-warning {
  border-left-color: #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
}

.alert-success {
  border-left-color: #198754;
  background-color: rgba(25, 135, 84, 0.1);
}

/* Footer Styling */
footer {
  margin-top: auto;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
  }
  
  .hero .card-body {
    padding: 2rem 1.5rem !important;
  }
  
  .display-5 {
    font-size: 2rem !important;
  }
}

/* Custom Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.offcanvas.show {
  animation: slideInLeft 0.3s ease-out;
}

/* Focus Styles für Accessibility */
.btn:focus,
.list-group-item:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
  outline: none;
}

/* Custom Icon Styling */
.bi {
  vertical-align: -0.125em;
}

/* Loading States (optional für später) */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  border-color: #ffffff transparent #ffffff transparent;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Desktop Navigation Anpassungen */
@media (min-width: 1024px) {
  .navigation-sidebar__content {
    border-radius: 0;
  }
}

/* ==========================================================================
   GLOBALE KOMPONENTEN - Konsistentes Design
   ========================================================================== */

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: calc(100vh - var(--header-height));
}

/* Buttons - Konsistent mit Hauptseite */
.btn {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  color: white;
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.btn-warning {
  background: #ffc107;
  color: #212529;
}

.btn-warning:hover {
  background: #e0a800;
  transform: translateY(-1px);
  color: #212529;
  text-decoration: none;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.btn-success {
  background: #198754;
  color: white;
}

.btn-success:hover {
  background: #157347;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.btn-info {
  background: #0dcaf0;
  color: #212529;
}

.btn-info:hover {
  background: #0bb2d4;
  transform: translateY(-1px);
  color: #212529;
  text-decoration: none;
}

.btn-sm {
  padding: 0.125rem 0.375rem;
  font-size: 0.7rem;
}

.btn-xs {
  padding: 0.25rem 0.35rem;
  font-size: 0.75rem;
  line-height: 1.2;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Form Controls - Konsistent mit Hauptseite */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  font-family: inherit;
  line-height: 1.4;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
  color: #6c757d;
}

.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-color);
}

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

/* Select Controls */
.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  font-family: inherit;
  line-height: 1.4;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
  appearance: none;
  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='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Alerts - Erweitert von bestehenden Styles */
.alert {
  position: relative;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
}

.alert-success {
  color: #0f5132;
  background-color: rgba(25, 135, 84, 0.1);
  border-color: #b3d9ce;
  border-left: 4px solid #198754;
}

.alert-danger {
  color: #842029;
  background-color: rgba(220, 53, 69, 0.1);
  border-color: #f5c2c7;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  color: #664d03;
  background-color: rgba(255, 193, 7, 0.1);
  border-color: #ffecb5;
  border-left: 4px solid #ffc107;
}

.alert-info {
  color: #055160;
  background-color: rgba(13, 202, 240, 0.1);
  border-color: #b6effb;
  border-left: 4px solid #0dcaf0;
}

/* Tables - Vereinfacht ohne Cards */
.table-container {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
  position: relative;
}

.table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  font-weight: 600;
  color: var(--dark-color);
  border-bottom: 2px solid var(--border-color);
}

/* Sticky Table Header */
.table-responsive.sticky-header {
  max-height: calc(100vh - 240px); /* Desktop: Header (64px) + Search (80px) + Page Header (60px) + Margins (36px) */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.table-responsive.sticky-header::-webkit-scrollbar {
  width: 8px;
}

.table-responsive.sticky-header::-webkit-scrollbar-track {
  background: transparent;
}

.table-responsive.sticky-header::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.table-responsive.sticky-header::-webkit-scrollbar-thumb:hover {
  background: #6c757d;
}

.table-responsive.sticky-header .table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-bottom: 2px solid var(--border-color);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.search-form .form-control {
  flex: 1;
  margin-bottom: 0;
}

/* Page Headers */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.765rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 0.5rem;
}

.badge-secondary {
  color: white;
  background-color: #6c757d;
}

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

.badge-success {
  color: white;
  background-color: #198754;
}

.badge-warning {
  color: #212529;
  background-color: #ffc107;
}

.badge-danger {
  color: white;
  background-color: #dc3545;
}

/* Status Indicators */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-dot--active {
  background-color: #198754; /* Grün für aktive Kunden */
}

.status-dot--archived {
  background-color: #6c757d; /* Grau für archivierte Kunden */
}

/* Button Groups */
.btn-group {
  display: inline-flex;
  gap: 0.25rem;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 1rem;
  padding: 0.5rem 0;
}

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-item {
  position: relative;
}

.page-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  background: #6c757d;
  border: none;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
  cursor: pointer;
}

.page-link:hover {
  background: #5a6268;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.page-item.active .page-link {
  color: white;
  background: #495057;
  border: none;
  box-shadow: 0 4px 12px rgba(73, 80, 87, 0.4);
}

.page-item.active .page-link:hover {
  background: #343a40;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 58, 64, 0.5);
}

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

.empty-state h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

/* Mobile User List */
.user-list {
  display: none; /* Standardmaessig versteckt, nur auf Mobile sichtbar */
}

.user-item {
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.user-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.user-content {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.user-email {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.user-role {
  margin-top: 0.5rem;
}

.user-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Utility Classes */
.d-flex {
  display: flex !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

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

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

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

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

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.text-muted {
  color: #6c757d !important;
}

.text-end {
  text-align: right !important;
}

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

/* Responsive Breakpoints */
@media (min-width: 576px) {
  .container {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }
  
  .d-md-block {
    display: block !important;
  }
  
  .search-form {
    flex-wrap: nowrap;
  }
  
  /* Desktop/Tablet: slightly larger buttons for better usability */
  .btn-xs {
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
    min-width: 30px;
    height: 30px;
  }
  
  .card__actions {
    gap: 0.375rem;
  }
}

@media (max-width: 767.98px) {
  .d-block {
    display: block !important;
  }
  
  .d-md-none {
    display: block !important;
  }
  
  .d-md-block {
    display: none !important;
  }
  
  .user-list {
    display: block;
  }
  
  .search-form {
    flex-direction: row;
    align-items: stretch;
  }
  
  .search-form .form-control {
    margin-bottom: 0;
  }
  
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .container {
    padding: 1rem;
  }
}

/* ==========================================================================
   AUTHENTICATION PAGES - Login/Logout Styles
   ========================================================================== */

.auth-body {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 2rem 1rem;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.auth-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(140, 140, 140, 0.2));
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: #6c757d;
  margin: 0;
}

.auth-form {
  position: relative;
  z-index: 1;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form .form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.auth-form .form-control {
  padding: 0.875rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.auth-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
  background: white;
  transform: translateY(-1px);
}

/* Password field with toggle */
.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.password-toggle:hover {
  opacity: 1;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  background: white;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}

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

.form-check-input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-check-label {
  color: var(--text-color);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  margin: 0;
  line-height: 1.4;
}

.btn-block {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-block:hover::before {
  left: 100%;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
  position: relative;
  z-index: 1;
}

.auth-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: #6c757d;
}

/* Auth-spezifische Alerts */
.auth-card .alert {
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.auth-card .alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.auth-card .alert-info {
  background: rgba(13, 202, 240, 0.1);
  color: #0c5460;
  border: 1px solid rgba(13, 202, 240, 0.2);
}

/* Loading State */
.auth-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive Auth */
@media (max-width: 480px) {
  .auth-container {
    padding: 1rem 0.5rem;
  }
  
  .auth-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .auth-title {
    font-size: 1.25rem;
  }
  
  .auth-subtitle {
    font-size: 1rem;
  }
}

/* ==========================================================================
   NAVIGATION EXTENSIONS - User Info & Auth States
   ========================================================================== */

.navigation-sidebar__user {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(115, 115, 115, 0.1) 0%, rgba(134, 134, 134, 0.05) 100%);
  border-bottom: 1px solid rgba(227, 227, 227, 0.1);
  margin-bottom: 0.5rem;
}

.navigation-sidebar__user .user-info {
  text-align: left;
}

.navigation-sidebar__user .user-name {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.navigation-sidebar__user .user-email {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.navigation-sidebar__user .user-role {
  margin-top: 0.5rem;
}

.navigation-sidebar__user .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.navigation-sidebar__item--logout {
  background: rgba(220, 53, 69, 0.05);
  border-top: 1px solid rgba(220, 53, 69, 0.1);
  color: #dc3545 !important;
  margin-top: auto;
}

.navigation-sidebar__item--logout:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545 !important;
  border-left-color: #dc3545;
}

.navigation-sidebar__item--logout:hover::before {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(220, 53, 69, 0.08) 50%, 
    transparent 100%);
}

.navigation-sidebar__item--logout .navigation-sidebar__arrow {
  color: #dc3545;
}

/* Font Awesome Icons */
.fas {
  margin-right: 0.25rem;
}

.card__title .fas {
  margin-right: 0.5rem;
}

/* Form Actions */
.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

/* Button Actions Container */
.card__actions {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* FontAwesome icons in buttons - ensure perfect centering */
.btn-xs i,
.btn-xs .fas,
.btn-xs .fa-solid,
.btn-sm i,
.btn-sm .fas,
.btn-sm .fa-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  margin: 0;
  padding: 0;
  width: 1em;
  height: 1em;
}

/* Ensure buttons themselves center the content */
.btn-xs,
.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Responsive Design für Button Actions */
@media (max-width: 400px) {
  .card__actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
  }
  
  .card__actions .btn {
    min-width: 50px;
    text-align: center;
  }
  
  .table th:last-child,
  .table td:last-child {
    width: 60px !important;
    min-width: 60px;
    padding: 0.25rem !important;
  }
  
  .table th:first-child,
  .table td:first-child {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .table th:nth-child(2),
  .table td:nth-child(2) {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* Sticky header height adjustment for small screens */
  .table-responsive.sticky-header {
    max-height: calc(100vh - 280px); /* Mobile: weniger Platz für Suchformular */
  }
}

/* Spezifisches CSS für 300px Breite */
@media (max-width: 340px) {
  .search-form {
    flex-direction: column !important;
    gap: 0.375rem !important;
  }
  
  .search-form .form-control,
  .search-form .form-select {
    flex: none !important;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0.5rem;
  }
  
  .table {
    font-size: 0.75rem;
  }
  
  /* Sticky header height adjustment for very small screens */
  .table-responsive.sticky-header {
    max-height: calc(100vh - 300px); /* Sehr kleine Bildschirme: kompaktere Darstellung */
  }
  
  .btn-xs {
    padding: 0.2rem 0.3rem !important;
    font-size: 0.7rem !important;
    min-width: 26px;
    height: 26px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Formulare für sehr schmale Bildschirme */
  .form-control,
  .form-select {
    padding: 0.25rem 0.375rem;
    font-size: 0.7rem;
  }
  
  .form-group {
    margin-bottom: 0.75rem;
  }
  
  .form-label {
    font-size: 0.7rem;
    margin-bottom: 0.125rem;
  }
  
  .search-form {
    flex-direction: column;
    gap: 0.375rem;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .card__title {
    font-size: 1rem;
  }
  
  /* Card padding für 300px */
  .card {
    padding: 0.75rem;
  }
}

@media (max-width: 576px) {
  .pagination {
    justify-content: center;
    gap: 0.375rem;
  }
  
  .page-link {
    padding: 0.375rem 0.625rem;
    font-size: 0.8rem;
    min-width: 36px;
  }
}

/* ==========================================================================
   Form Styling Create/Edit-Client, User
   ========================================================================== */

/* Form Container */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-wrapper {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

/* Form Grid Layouts */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-grid-2-main {
  flex: 1;
}

.form-grid-2-small {
  flex: 0 0 120px;
}

/* Street and House Number Layout */
.form-grid-2:has(.form-grid-2-main) {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Form Controls */
.form-control,
.form-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  width: 100%;
  transition: var(--transition);
}

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

/* Form Labels */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.form-actions.vertical {
  flex-direction: column;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.form-actions.vertical .btn {
  width: 100%;
  justify-content: center;
}

/* Form Error Messages */
.form-error {
  color: #dc3545;
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

/* Form Help Text */
.form-help {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Form Info Panel */
.form-info-panel {
  background: var(--light-color);
  padding: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}

.form-info-panel h6 {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.85rem;
}

.form-info-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  font-size: 0.85rem;
}

.form-info-item small {
  display: block;
  margin-bottom: 0.25rem;
  color: #6c757d;
}

/* Responsive Form Adjustments - Mobile */
@media (max-width: 767.98px) {
  .form-wrapper {
    padding: 1.5rem;
  }
  
  .form-grid-2,
  .form-grid-2:has(.form-grid-2-main),
  .form-grid-3 {
    display: block;
  }
  
  .form-grid-2 > div,
  .form-grid-2-main,
  .form-grid-2-small,
  .form-grid-3 > div {
    margin-bottom: 1rem;
  }
  
  .form-grid-2 > div:last-child,
  .form-grid-3 > div:last-child {
    margin-bottom: 0;
  }
  
  .form-info-grid,
  .form-info-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Action Buttons Container */
.action-buttons,
.carrier-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
}

/* Parcel Status Badges - Same design as carrier/client status */
.parcel-status {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
  width: fit-content;
  display: inline-block;
}

.parcel-status.received {
  background: #e2e3e5;
  color: #383d41;
  border: 1px solid #d1d3d4;
}

.parcel-status.ready {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.parcel-status.handed-over {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.parcel-status.archived {
  background: #e2e3e5;
  color: #383d41;
  border: 1px solid #d1d3d4;
}

/* Parcel List - Mobile Design */
.parcel-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.parcel-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.parcel-item:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.parcel-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.parcel-info {
  flex: 1;
}

.parcel-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.parcel-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
}

.parcel-client {
  color: #666;
  font-size: 0.9rem;
}

.parcel-carrier {
  color: #888;
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

.parcel-meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.5rem;
}

.parcel-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Tracking Link */
.tracking-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tracking-link:hover {
  text-decoration: underline;
}

/* Weight display */
.weight-display {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Carrier List - Mobile Design */
.carrier-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.carrier-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.carrier-item:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.carrier-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.carrier-info {
  flex: 1;
}

.carrier-name {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.carrier-name strong {
  font-size: 1.1rem;
  color: var(--dark-color);
}

.carrier-status {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
  width: fit-content;
}

.carrier-status.active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.carrier-status.inactive {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Client Status - Same design as carrier status */
.client-status {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
  width: fit-content;
  display: inline-block;
}

.client-status.active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.client-status.archived {
  background: #e2e3e5;
  color: #383d41;
  border: 1px solid #d1d3d4;
}

/* User Role Badges - Same design as carrier/client status */
.user-role-badge {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
  width: fit-content;
  display: inline-block;
}

.user-role-badge.systemadmin {
  background: #f0f0f2;
  color: #5a5a5f;
  border: 1px solid #d4d4d8;
}

.user-role-badge.administrator {
  background: #f5f3e9;
  color: #8b7355;
  border: 1px solid #e6dcc6;
}

.user-role-badge.benutzer {
  background: #e8f4f8;
  color: #2c5aa0;
  border: 1px solid #b8dce8;
}

.carrier-description {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.carrier-meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.5rem;
}

.carrier-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Damage Level Selector - CHECKBOX */
.damage-level-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.damage-option {
  position: relative;
}

.damage-radio {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.damage-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 0.85rem;
  min-height: 65px;
  user-select: none;
}

.damage-label i {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}

.damage-label span {
  font-weight: 500;
  line-height: 1.2;
}

/* Color variants */
.damage-good {
  color: #28a745;
}

.damage-light {
  color: #ffc107;
}

.damage-medium {
  color: #fd7e14;
}

.damage-heavy {
  color: #dc3545;
}

/* Hover states */
.damage-label:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.damage-good:hover {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.damage-light:hover {
  border-color: #ffc107;
  background: rgba(255, 193, 7, 0.05);
}

.damage-medium:hover {
  border-color: #fd7e14;
  background: rgba(253, 126, 20, 0.05);
}

.damage-heavy:hover {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

/* Selected states */
.damage-radio:checked + .damage-good {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
  color: #1e7e34;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.damage-radio:checked + .damage-light {
  border-color: #ffc107;
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.damage-radio:checked + .damage-medium {
  border-color: #fd7e14;
  background: rgba(253, 126, 20, 0.1);
  color: #8a4a00;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(253, 126, 20, 0.2);
}

.damage-radio:checked + .damage-heavy {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

/* Focus states for accessibility */
.damage-radio:focus + .damage-label {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .damage-level-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .damage-label {
    padding: 0.6rem 0.4rem;
    min-height: 60px;
    font-size: 0.8rem;
  }
  
  .damage-label i {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }
}

/* Tablet responsiveness */
@media (min-width: 481px) and (max-width: 768px) {
  .damage-level-selector {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }
  
  .damage-label {
    padding: 0.7rem 0.5rem;
    min-height: 62px;
  }
}

/* Large screens */
@media (min-width: 769px) {
  .damage-level-selector {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 400px;
  }
}

/* Notes and Damage Layout - Force Side by Side */
.notes-damage-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1.5rem;
  align-items: flex-start;
}

.notes-section,
.price-notes-section {
  flex: 1;
  min-width: 0; /* Allows text to wrap properly */
}

.damage-section {
  flex: 1;
  min-width: 0;
}

@media (max-width: 576px) {
  .notes-damage-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .damage-section {
    min-width: auto;
  }
}
