/* modern.css — Frosted Touch Design
   Premium glassmorphism with enhanced blur effects
   Maintains color palette while adding frosted glass aesthetic
*/
:root{
  --bg: #f7f8fb;
  --card-bg: rgba(255,255,255,0.65);
  --card-bg-strong: rgba(255,255,255,0.75);
  --muted: #69707a;
  --accent: #0a1367; /* iOS blue-ish */
  --cta-start: #0a1367;
  --cta-end: #0067d9;
  --cta-gradient: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  --radius: 14px;
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 12px;
  --blur-xl: 16px;
}

html,body{
  background: linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  color: #0f1724;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ============================================
   HTMX Progress Bar - Barre bleue de chargement
   ============================================ */
.htmx-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #0a84ff, #0a1367, #0067d9);
  z-index: 9999;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.5), 0 0 5px rgba(10, 132, 255, 0.3);
}

.htmx-progress-bar.htmx-request {
  animation: htmx-progress 2s ease-in-out infinite;
}

@keyframes htmx-progress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 90%; }
}

/* Frosted glass cards with enhanced backdrop filter */
.card, .card-body, .navbar, .sidenav{
  background: var(--card-bg-strong);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(12,15,20,0.08);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%) brightness(1.05);
  border: 1px solid rgba(255,255,255,0.5);
}

/* Navbar: Frosted glass with enhanced blur */
.navbar-main{
  padding: 0.6rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.6));
  border-radius: 12px;
  backdrop-filter: blur(var(--blur-xl)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(180%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 32px rgba(12,15,20,0.08);
}

/* Sidebar tweaks: frosted glass effect */
.sidenav .navbar-brand .ms-1{
  font-weight: 700;
  letter-spacing: -0.2px;
}
.sidenav a.nav-link{
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  margin: 0.25rem 0.25rem;
  color: var(--muted) !important;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  transition: all 0.2s ease-out;
}
.sidenav a.nav-link:hover{
  background: rgba(10,132,255,0.15);
  color: var(--accent) !important;
  box-shadow: 0 8px 20px rgba(10,132,255,0.12);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
}

/* Buttons: frosted glass effect with enhanced shadow */
.btn-primary{
  background: var(--cta-gradient) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 999px !important; /* pill */
  padding: 0.6rem 1rem !important;
  box-shadow: 0 12px 32px rgba(0,103,217,0.24);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  transition: all 0.2s ease-out;
}
.btn-primary:hover{
  box-shadow: 0 16px 40px rgba(0,103,217,0.32);
  transform: translateY(-2px);
}
.btn{
  border-radius: 12px !important;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid rgba(255,255,255,0.2) !important;
  transition: all 0.2s ease-out;
}

/* Inputs: Frosted glass iOS-like style */
input.form-control, textarea.form-control, select.form-select{
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.6);
  box-shadow: inset 0 2px 8px rgba(12,15,20,0.04);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  transition: all 0.2s ease-out;
}
input.form-control:focus, textarea.form-control:focus, select.form-select:focus{
  border-color: rgba(10,132,255,0.4);
  background: rgba(255,255,255,0.8);
  box-shadow: inset 0 2px 8px rgba(12,15,20,0.04), 0 0 0 3px rgba(10,132,255,0.1);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
}

/* Cards: enhanced lift and frosted glass on hover */
.card:hover{
  transform: translateY(-6px);
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .2s ease-out;
  box-shadow: 0 16px 40px rgba(12,15,20,0.12);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%);
}

/* Pagination: modern round buttons */
.pagination .page-item .page-link{
  border-radius: 999px !important;
  border: none !important;
  background: transparent !important;
}

/* Typography tweaks */
h1,h2,h3,h4,h5{
  font-weight: 700;
  color: #0b1220;
}

/* small helpers */
.small-muted{ color: #7b8794; font-size: .9rem }

/* Ensure good spacing on small screens */
@media (max-width:768px){
  .sidenav{ display: none }
  .navbar-main{ border-radius: 10px }
}

/* Keep scrollbar hidden for sidebar if needed */
.sidenav{ scrollbar-width: none; }
.sidenav::-webkit-scrollbar{ display:none }

/* === Dashboard Modern Components === */

/* Welcome section */
.modern-welcome{
  padding: 1.5rem 0;
}

/* KPI Cards - Frosted glass premium effect */
.kpi-card{
  background: rgba(255,255,255,0.65);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 24px rgba(12,15,20,0.08);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%) brightness(1.05);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kpi-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(12,15,20,0.12);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%) brightness(1.1);
}
.kpi-icon{
  font-size: 2.2rem;
  opacity: 0.8;
}
.kpi-content{
  flex: 1;
}
.kpi-value{
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #1a202c;
}
.kpi-label{
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  margin-top: 0.25rem;
}

/* Action Cards - Frosted glass effect */
.action-card{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.65);
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 20px rgba(12,15,20,0.08);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: inherit;
}
.action-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(12,15,20,0.12);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  color: inherit;
}
.action-icon{
  font-size: 1.8rem;
  opacity: 0.7;
}
.action-content{
  flex: 1;
}
.action-title{
  font-weight: 600;
  margin: 0;
  color: #2d3748;
}
.action-desc{
  margin: 0;
  margin-top: 0.25rem;
}
.action-arrow{
  color: var(--accent);
  opacity: 0.6;
  transition: transform 0.2s ease-out;
}
.action-card:hover .action-arrow{
  transform: translateX(4px);
}

/* === KPI Page Modern Components === */

/* Modern KPI Cards - Premium frosted glass */
.modern-kpi-card{
  background: rgba(255,255,255,0.65);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: 0 10px 28px rgba(12,15,20,0.1);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%) brightness(1.05);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 100%;
}
.modern-kpi-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(12,15,20,0.14);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%) brightness(1.1);
}

.kpi-header{
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.kpi-metric-icon{
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #0a1367);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.kpi-metric-content{
  flex: 1;
}

.kpi-metric-value{
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: #1a202c;
  line-height: 1.1;
}

.kpi-metric-label{
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  margin-top: 0.25rem;
  line-height: 1.3;
}

.kpi-chart-container{
  margin-top: 0.5rem;
  height: 60px;
  position: relative;
  width: 100%;
}

.kpi-sparkline{
  width: 100% !important;
  height: 60px !important;
  max-width: 100%;
  display: block;
}

/* === Modern List/Table Components === */

/* Search section */
.search-section{
  margin-bottom: 2rem;
}

.modern-search-card{
  background: rgba(255,255,255,0.65);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 20px rgba(12,15,20,0.08);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  transition: all 0.2s ease-out;
}

.modern-search-form {
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem;
  align-items: flex-end !important;
}

.search-input-group {
  flex: 1;
  display: flex !important;
  flex-direction: column;
}

.search-input-group .form-label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.modern-input{
  border: 1.5px solid rgba(255,255,255,0.4) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  background: rgba(255,255,255,0.65) !important;
  font-size: 0.95rem;
  height: 48px !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  transition: all 0.2s ease-out;
}

.modern-input:focus{
  border-color: rgba(10,132,255,0.4) !important;
  box-shadow: inset 0 2px 8px rgba(12,15,20,0.04), 0 0 0 3px rgba(10,132,255,0.1) !important;
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
}

.modern-btn-search{
  border-radius: 12px !important;
  padding: 0.75rem 1.5rem !important;
  gap: 0.5rem;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important; /* Même hauteur que l'input */
  white-space: nowrap;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

/* Fix pour les classes Bootstrap qui interfèrent */
.modern-search-form .form-control {
  margin-bottom: 0 !important;
}

.modern-search-form .btn {
  margin-bottom: 0 !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .modern-search-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .modern-btn-search {
    justify-content: center;
  }
}

/* User Detail Page Styles */
.user-profile-header {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--modern-shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.user-avatar-section {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.user-avatar {
  position: relative;
}

.avatar-circle {
  width: 90px;
  height: 90px;
  background: linear-gradient(180deg, #0a84ff, #0a1367);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(10, 132, 255, 0.25);
}

.avatar-circle-large {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  max-width: 120px;
  max-height: 120px;
  background: linear-gradient(180deg, #0a84ff, #0a1367);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(10, 132, 255, 0.25);
  flex-shrink: 0;
  aspect-ratio: 1;
}

.user-status-dot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-status-dot.status-active {
  background: #10b981;
}

.user-status-dot.status-inactive {
  background: #ef4444;
}

.user-basic-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.user-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.user-name-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.user-id, .user-profile-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.quick-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.action-btn.primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  color: white;
}

.action-btn.secondary {
  background: var(--glass-bg);
  color: var(--text-dark);
  border: 1px solid var(--glass-border);
}

.action-btn.secondary:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: var(--modern-shadow);
  color: var(--text-dark);
}

.action-btn.edit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn.edit-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

.action-btn.profile-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.action-btn.profile-btn:hover {
  background: linear-gradient(135deg, #ee7ff0 0%, #f34560 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
  color: white;
}

.action-btn.openflyers-btn {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.action-btn.openflyers-btn:hover {
  background: linear-gradient(135deg, #3d9bfc 0%, #00e8fc 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
  color: white;
}

.action-btn.profile-edit-btn {
  background: linear-gradient(180deg, #0a84ff, #0a1367);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.action-btn.profile-edit-btn:hover {
  background: linear-gradient(180deg, #0a1367, #004db5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 132, 255, 0.4);
  color: white;
}

.action-btn.validity-edit-btn {
  background: linear-gradient(180deg, #0a84ff, #0a1367);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.action-btn.validity-edit-btn:hover {
  background: linear-gradient(180deg, #0a1367, #004db5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 132, 255, 0.4);
  color: white;
}

/* Info en card blanche */
.personal-info-section {
  margin-bottom: 2rem;
}

.info-white-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.info-white-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Personal info grid for clean line display */
.personal-info-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.info-detail-row:last-child {
  border-bottom: none;
}

.info-detail-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  min-width: 140px;
}

.info-detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  text-align: right;
  flex: 1;
}

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

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

/* Sections */
.validity-section, .authorizations-section, .badges-section, .personal-info-section {
  margin-bottom: 2.5rem;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* Validités simples comme dans l'image */
.validities-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.validity-item {
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(12,15,20,0.08);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
}

.validity-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(12,15,20,0.12);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%);
}

.validity-status-indicator {
  width: 8px;
  height: 40px;
  border-radius: 4px;
  flex-shrink: 0;
}

.validity-status-indicator.valid {
  background: #10b981;
}

.validity-status-indicator.invalid {
  background: #ef4444;
}

.validity-info {
  flex: 1;
}

.validity-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.validity-date {
  color: #6b7280;
  font-size: 0.85rem;
}

.validity-badge {
  flex-shrink: 0;
}

.badge-valid, .badge-recent {
  background: #10b981;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-recent {
  background: #10b981;
}

.badge-invalid {
  background: #ef4444;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Lâchers simplifiés */
.authorization-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lacher-header-simple {
  margin-bottom: 1rem;
}

.lacher-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lacher-name:before {
  content: "✈️";
  font-size: 1.2rem;
}

.aircraft-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.aircraft-detailed-card {
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 20px rgba(12,15,20,0.08);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
}

.aircraft-detailed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(12,15,20,0.12);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%);
}

.aircraft-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.aircraft-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.aircraft-registration {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.2rem;
}

.aircraft-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aircraft-location,
.aircraft-authorization {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.aircraft-location i,
.aircraft-authorization i {
  width: 16px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.no-aircraft-simple {
  color: #6b7280;
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

/* Aircraft capture style cards */
.aircraft-capture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.aircraft-capture-card {
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 20px rgba(12,15,20,0.08);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
}

.aircraft-capture-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(12,15,20,0.12);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%);
}

.aircraft-capture-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.aircraft-capture-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.aircraft-capture-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.2rem;
  flex: 1;
  margin-left: 1rem;
}

.aircraft-capture-status {
  flex-shrink: 0;
}

.status-disponible {
  background: #10b981;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ensure aircraft-location styling in detail page */
.aircraft-location {
  color: #6b7280;
  font-size: 0.85rem;
  margin: 0;
}

.aircraft-capture-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.capture-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.capture-detail-label {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
}

.capture-detail-value {
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Badges simplifiés */
.badge-simple-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.badge-simple-item {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.badge-simple-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.badge-number {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
}

.badge-status-indicator {
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-status-indicator.active {
  color: #10b981;
}

.badge-status-indicator.error {
  color: #ef4444;
}

.empty-state-simple {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-style: italic;
}

.badge-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.badge-status.active {
  color: #10b981;
}

.badge-status.error {
  color: #ef4444;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .user-profile-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .quick-actions {
    justify-content: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .validity-grid {
    grid-template-columns: 1fr;
  }
}

/* List container */
.modern-list-container{
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(15,20,30,0.06);
  box-shadow: 0 4px 12px rgba(12,15,20,0.04);
  backdrop-filter: blur(8px);
}

.list-stats{
  font-size: 0.9rem;
}

/* Pilot rows */
.modern-table-container{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pilot-row{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  border: 1px solid rgba(15,20,30,0.04);
  transition: all 0.2s ease-out;
}

.pilot-row:hover{
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12,15,20,0.06);
}

.pilot-avatar{
  flex-shrink: 0;
}

.avatar-circle{
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #0a1367);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.pilot-info{
  flex: 1;
  min-width: 0;
}

.pilot-name{
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.125rem;
}

.pilot-id{
  font-size: 0.85rem;
}

.pilot-status{
  flex-shrink: 0;
}

.status-badge{
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-active{
  background: rgba(34,197,94,0.1);
  color: #15803d;
}

.status-inactive{
  background: rgba(239,68,68,0.1);
  color: #dc2626;
}

.pilot-actions{
  flex-shrink: 0;
}

.btn-action-modern{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(10,132,255,0.1);
  color: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(10,132,255,0.2);
  transition: all 0.2s ease-out;
}

.btn-action-modern:hover{
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.btn-action-modern.disabled{
  background: rgba(156,163,175,0.1);
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

/* Empty state */
.empty-state{
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon{
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px){
  .pilot-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .pilot-info, .pilot-status, .pilot-actions{
    width: 100%;
  }
  
  .pilot-status, .pilot-actions{
    display: flex;
    justify-content: flex-start;
  }
}

/* === Login Page Modern === */

.login-container{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 2rem 1rem;
}

.login-card{
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(15,20,30,0.06);
  box-shadow: 0 12px 40px rgba(12,15,20,0.08);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 420px;
}

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

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

.login-title{
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.login-subtitle{
  margin-bottom: 0;
}

.login-form{
  width: 100%;
}

.form-group-modern{
  position: relative;
}

.form-label-modern{
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-input-modern{
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(15,20,30,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  font-size: 1rem;
  transition: all 0.2s ease-out;
}

.form-input-modern:focus{
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10,132,255,0.1);
}

.login-error{
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,0.2);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-login-modern{
  width: 100%;
  background: var(--cta-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.2s ease-out;
  cursor: pointer;
}

.btn-login-modern:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,103,217,0.28);
}

.btn-login-modern:active{
  transform: translateY(0);
}

/* === Modern Pagination === */

.modern-pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination-btn, .pagination-number{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease-out;
  border: 1px solid rgba(15,20,30,0.06);
  background: rgba(255,255,255,0.8);
  color: #374151;
  backdrop-filter: blur(8px);
}

.pagination-btn:hover, .pagination-number:hover{
  background: rgba(10,132,255,0.1);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10,132,255,0.15);
  text-decoration: none;
}

.pagination-number.active{
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(10,132,255,0.25);
}

.pagination-btn.disabled{
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-prev, .pagination-next{
  font-size: 0.8rem;
}

/* Responsive pagination */
@media (max-width: 480px){
  .modern-pagination{
    gap: 0.375rem;
  }
  
  .pagination-btn, .pagination-number{
    min-width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}

/* === Modern Forms === */

.add-section{
  margin-bottom: 2rem;
}

.modern-form-card{
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(15,20,30,0.06);
  box-shadow: 0 4px 12px rgba(12,15,20,0.04);
  backdrop-filter: blur(8px);
}

.modern-form input, .modern-form select, .modern-form textarea{
  border: 1px solid rgba(15,20,30,0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  width: 100%;
}

.modern-form input:focus, .modern-form select:focus, .modern-form textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.1);
  background: #fff;
  outline: none;
}

.btn-primary-modern{
  background: var(--cta-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease-out;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary-modern:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(10,132,255,0.25);
  color: white;
}

/* === Aircraft Cards === */

.aircraft-list-container{
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(15,20,30,0.06);
  box-shadow: 0 4px 12px rgba(12,15,20,0.04);
  backdrop-filter: blur(8px);
}

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

.aircraft-card{
  background: rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(15,20,30,0.04);
  transition: all 0.2s ease-out;
}

.aircraft-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(12,15,20,0.08);
}

.aircraft-header{
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.aircraft-icon{
  font-size: 1.8rem;
  opacity: 0.8;
}

.aircraft-info{
  flex: 1;
}

.aircraft-registration{
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  font-size: 1.1rem;
}

.aircraft-location{
  margin: 0;
  margin-top: 0.25rem;
}

.aircraft-status{
  flex-shrink: 0;
}

.status-toggle{
  border: none;
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-out;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.status-toggle.locked{
  background: rgba(239,68,68,0.1);
  color: #dc2626;
}

.status-toggle.unlocked{
  background: rgba(34,197,94,0.1);
  color: #15803d;
}

.status-toggle:hover{
  transform: scale(1.05);
}

.aircraft-details{
  margin-bottom: 1.25rem;
}

.detail-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15,20,30,0.04);
}

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

.detail-label{
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-value{
  font-weight: 500;
  color: #374151;
}

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

.aircraft-action-btn{
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease-out;
  border: 1px solid;
}

.aircraft-action-btn.primary{
  background: rgba(10,132,255,0.1);
  color: var(--accent);
  border-color: rgba(10,132,255,0.2);
}

.aircraft-action-btn.secondary{
  background: rgba(107,114,128,0.1);
  color: #6b7280;
  border-color: rgba(107,114,128,0.2);
}

.aircraft-action-btn.danger{
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  border-color: rgba(239,68,68,0.2);
}

.aircraft-action-btn:hover{
  transform: translateY(-1px);
  text-decoration: none;
}

.aircraft-action-btn.primary:hover{
  background: var(--accent);
  color: white;
}

.aircraft-action-btn.secondary:hover{
  background: #6b7280;
  color: white;
}

.aircraft-action-btn.danger:hover{
  background: #dc2626;
  color: white;
}

@media (max-width: 768px){
  .aircraft-grid{
    grid-template-columns: 1fr;
  }
  
  .aircraft-header{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .aircraft-actions{
    justify-content: stretch;
  }
  
  .aircraft-action-btn{
    flex: 1;
    justify-content: center;
  }
}

/* === Badges Cards === */

.badges-list-container{
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(15,20,30,0.06);
  box-shadow: 0 4px 12px rgba(12,15,20,0.04);
  backdrop-filter: blur(8px);
}

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

.badge-card{
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(15,20,30,0.04);
  transition: all 0.2s ease-out;
}

.badge-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(12,15,20,0.06);
}

.badge-header{
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.badge-icon{
  font-size: 1.5rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.badge-info{
  flex: 1;
  min-width: 0;
}

.badge-number{
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  font-size: 1rem;
}

.badge-user{
  margin: 0;
  margin-top: 0.25rem;
}

.badge-status{
  flex-shrink: 0;
}

.status-badge-ok{
  background: rgba(34,197,94,0.1);
  color: #15803d;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.status-badge-error{
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.badge-actions{
  margin-top: 1rem;
}

.badge-action-btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(10,132,255,0.1);
  color: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(10,132,255,0.2);
  transition: all 0.2s ease-out;
}

.badge-action-btn:hover{
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
  text-decoration: none;
}

@media (max-width: 768px){
  .badges-grid{
    grid-template-columns: 1fr;
  }
  
  .badge-header{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* === Movements Cards === */

.management-section{
  margin-bottom: 2rem;
}

.movements-container{
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(15,20,30,0.06);
  box-shadow: 0 4px 12px rgba(12,15,20,0.04);
  backdrop-filter: blur(8px);
}

.movements-list{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.movement-card{
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(15,20,30,0.04);
  transition: all 0.2s ease-out;
}

.movement-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(12,15,20,0.06);
}

.movement-header{
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.movement-datetime{
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}

.datetime-main{
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
}

.datetime-sub{
  font-size: 0.8rem;
  margin-top: 0.125rem;
}

.movement-info{
  flex: 1;
  min-width: 0;
}

.aircraft-info{
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.aircraft-reg{
  font-weight: 600;
  color: #1a202c;
  font-size: 1rem;
}

.pilot-name{
  font-size: 0.85rem;
}

.movement-location{
  flex-shrink: 0;
}

.location-badge{
  background: rgba(10,132,255,0.1);
  color: var(--accent);
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.movement-details{
  border-top: 1px solid rgba(15,20,30,0.06);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label{
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-value{
  font-weight: 500;
  color: #374151;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.activity-tag{
  background: rgba(34,197,94,0.1);
  color: #15803d;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

@media (max-width: 768px){
  .movement-header{
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .movement-datetime{
    text-align: left;
    min-width: auto;
  }
  
  .detail-item{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* === Tasks & Keyboxes === */

.tasks-container{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tasks-section{
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(15,20,30,0.06);
  box-shadow: 0 4px 12px rgba(12,15,20,0.04);
  backdrop-filter: blur(8px);
}

.tasks-header{
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15,20,30,0.08);
}

.tasks-header h5{
  margin: 0 0 0.5rem 0;
  color: #1a202c;
  font-weight: 700;
}

.tasks-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tasks-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.task-card{
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,20,30,0.04);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease-out;
}

.task-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12,15,20,0.08);
}

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

.task-name{
  margin: 0;
  color: #1a202c;
  font-weight: 600;
  font-size: 1rem;
}

.task-status-section{
  margin-bottom: 1rem;
  cursor: pointer;
}

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

.btn-task-action{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease-out;
  position: relative;
}

.btn-task-action:hover{
  background: #0056b3;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.btn-task-action.loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

.btn-task-action .btn-loading {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.btn-task-action.loading .btn-text,
.btn-task-action.loading .fa-play {
  display: none;
}

.btn-task-action.loading .btn-loading {
  display: inline-flex;
}

.btn-task-action .fa-circle-notch {
  animation: spin-ios 0.8s linear infinite;
}

@keyframes spin-ios {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Keyboxes specific */

.keyboxes-container{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.keyboxes-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.keybox-card{
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,20,30,0.04);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease-out;
}

.keybox-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12,15,20,0.08);
}

.keybox-info{
  margin-bottom: 1rem;
}

.keybox-name{
  margin: 0 0 0.75rem 0;
  color: #1a202c;
  font-weight: 600;
  font-size: 1.1rem;
}

.keybox-details{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-row{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a5568;
  font-size: 0.9rem;
}

.detail-row i{
  color: var(--accent);
  width: 14px;
}

.keybox-actions{
  display: flex;
  gap: 0.75rem;
}

.btn-keybox-action{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease-out;
}

.btn-keybox-action.primary{
  background: var(--accent);
  color: white;
}

.btn-keybox-action.primary:hover{
  background: #0056b3;
  color: white;
  text-decoration: none;
}

.btn-keybox-action.danger{
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  padding: 0.5rem;
}

.btn-keybox-action.danger:hover{
  background: rgba(239,68,68,0.2);
  color: #b91c1c;
  text-decoration: none;
}

.add-keybox-section{
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(15,20,30,0.06);
}

/* === Keybox Management === */

.keybox-container{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.keybox-section{
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgba(15,20,30,0.06);
  box-shadow: 0 4px 12px rgba(12,15,20,0.04);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.keybox-section-header{
  background: rgba(10,132,255,0.03);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15,20,30,0.06);
}

.keybox-section-header h5{
  margin: 0;
  color: #1a202c;
  font-weight: 600;
}

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

.keybox-form{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.keybox-actions{
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.aircraft-keys-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.aircraft-key-card{
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,20,30,0.04);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease-out;
}

.aircraft-key-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12,15,20,0.08);
}

.aircraft-key-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.aircraft-reg{
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
}

.key-number{
  background: rgba(10,132,255,0.1);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.lock-status{
  margin-bottom: 1rem;
  cursor: pointer;
}

.lock-badge{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease-out;
}

.lock-badge.locked{
  background: rgba(239,68,68,0.1);
  color: #dc2626;
}

.lock-badge.unlocked{
  background: rgba(34,197,94,0.1);
  color: #15803d;
}

.aircraft-key-actions{
  display: flex;
  gap: 0.75rem;
}

.btn-action{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease-out;
}

.btn-action.edit{
  background: rgba(10,132,255,0.1);
  color: var(--accent);
}

.btn-action.edit:hover{
  background: rgba(10,132,255,0.2);
  color: #0056b3;
  text-decoration: none;
}

.btn-action.delete{
  background: rgba(239,68,68,0.1);
  color: #dc2626;
}

.btn-action.delete:hover{
  background: rgba(239,68,68,0.2);
  color: #b91c1c;
  text-decoration: none;
}

@media (max-width: 768px){
  .tasks-grid{
    grid-template-columns: 1fr;
  }
  
  .keyboxes-grid{
    grid-template-columns: 1fr;
  }
  
  .aircraft-keys-grid{
    grid-template-columns: 1fr;
  }
  
  .keybox-actions{
    flex-direction: column;
  }
}

/* === Forms === */

.form-container{
  max-width: 600px;
  margin: 0 auto;
}

.form-card{
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgba(15,20,30,0.06);
  box-shadow: 0 4px 12px rgba(12,15,20,0.04);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.form-header{
  background: rgba(10,132,255,0.03);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15,20,30,0.06);
  text-align: center;
}

.form-header h5{
  margin: 0 0 0.5rem 0;
  color: #1a202c;
  font-weight: 600;
}

.form-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-body{
  padding: 1.5rem;
}

.modern-form{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-actions{
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

/* === Release Types === */

.release-types-container{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.release-section{
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgba(15,20,30,0.06);
  box-shadow: 0 4px 12px rgba(12,15,20,0.04);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.release-section-header{
  background: rgba(10,132,255,0.03);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15,20,30,0.06);
}

.release-section-header h5{
  margin: 0 0 0.5rem 0;
  color: #1a202c;
  font-weight: 600;
}

.release-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.release-form{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.release-actions{
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.release-types-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.release-type-card{
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,20,30,0.04);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease-out;
}

.release-type-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12,15,20,0.08);
}

.release-type-info{
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.release-code{
  font-weight: 700;
  color: #1a202c;
  font-size: 1.1rem;
}

.release-name{
  color: var(--muted);
  font-size: 0.9rem;
}

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

.btn-release-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease-out;
}

.btn-release-action.delete{
  background: rgba(239,68,68,0.1);
  color: #dc2626;
}

.btn-release-action.delete:hover{
  background: rgba(239,68,68,0.2);
  color: #b91c1c;
}

@media (max-width: 768px){
  .form-actions{
    flex-direction: column;
  }
  
  .release-actions{
    flex-direction: column;
  }
  
  .release-types-grid{
    grid-template-columns: 1fr;
  }
}

/* === App Layout === */

.app-container{
  display: flex;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

/* === Modern Sidebar === */

.modern-sidebar{
  width: 280px;
  height: 100dvh;
  max-height: 100dvh;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  /* Fallback pour une meilleure opacité */
  background-image: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(248,250,252,0.02) 100%);
  border-right: 1px solid rgba(15,20,30,0.08);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  overflow: hidden;
}

/* Mobile: sidebar en overlay */
@media (max-width: 1199px){
  .modern-sidebar{
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
  }

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

  .app-container{
    flex-direction: column;
  }

  .main-content{
    width: 100%;
  }
}

/* Header de la sidebar */
.sidebar-header{
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(15,20,30,0.06);
  height: 76px;
  display: flex;
  align-items: center;
}

.brand-container{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon{
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #007AFF 0%, #0056b3 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,122,255,0.25);
}

.brand-logo{
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.brand-text{
  display: flex;
  flex-direction: column;
}

.brand-title{
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.2;
  white-space: nowrap;
}

/* Navigation */
.sidebar-nav{
  flex: 1;
  padding: 1rem 0;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Scrollbar moderne pour iOS */
  scrollbar-width: thin;
  scrollbar-color: rgba(15,20,30,0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar{
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track{
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb{
  background: rgba(15,20,30,0.2);
  border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover{
  background: rgba(15,20,30,0.3);
}

.nav-section{
  margin-bottom: 24px;
}

.nav-section-title{
  padding: 0 20px 6px 20px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(74, 85, 104, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.nav-items{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  margin: 0 8px;
  color: #5f6368;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 0 24px 24px 0;
}

.nav-item:hover{
  background: rgba(60, 64, 67, 0.08);
  color: #202124;
  text-decoration: none;
}

.nav-item.active{
  background: rgba(26, 115, 232, 0.12);
  color: #1a73e8;
  font-weight: 500;
}

.nav-item.active::before{
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  width: 3px;
  background: #1a73e8;
  border-radius: 0 3px 3px 0;
}

.nav-item-icon{
  font-size: 20px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.87;
}

.nav-item-text{
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Footer utilisateur */
.sidebar-footer{
  padding: 1rem 1.5rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(15,20,30,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.user-info-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
  border-radius: 12px;
  padding: 0.5rem;
  transition: all 0.2s ease-out;
}

.user-info-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  text-decoration: none;
}

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

.user-avatar{
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
}

.user-details{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name{
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a202c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role{
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn{
  width: 36px;
  height: 36px;
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-out;
  text-decoration: none;
}

.logout-btn:hover{
  background: rgba(239,68,68,0.2);
  color: #b91c1c;
  text-decoration: none;
}

/* === Modern Header === */

.modern-header{
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15,20,30,0.06);
  position: sticky;
  top: 0;
  z-index: 1040;
}

.header-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
  height: 76px;
}

.mobile-menu-btn{
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.mobile-menu-btn:hover{
  background: rgba(15,20,30,0.05);
}

.hamburger{
  width: 20px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span{
  width: 100%;
  height: 2px;
  background: #1a202c;
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .hamburger span:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger span:nth-child(2){
  opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3){
  transform: rotate(-45deg) translate(7px, -6px);
}

.page-title-container{
  flex: 1;
}

.page-title{
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.2;
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification-badge{
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(15,20,30,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.notification-badge:hover{
  background: rgba(15,20,30,0.1);
  transform: scale(1.05);
}

.notification-badge i{
  color: #4a5568;
  font-size: 1.25rem;
}

/* Badge iOS style */
.badge-count{
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #FF3B30 0%, #FF453A 100%);
  color: white;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
  border: 2px solid white;
  animation: badge-pulse 2s infinite;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  letter-spacing: -0.2px;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* === Main Content === */

.main-content{
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.content-area{
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Scrollbar moderne pour le contenu */
  scrollbar-width: thin;
  scrollbar-color: rgba(15,20,30,0.2) transparent;
}

.content-area::-webkit-scrollbar{
  width: 6px;
}

.content-area::-webkit-scrollbar-track{
  background: transparent;
}

.content-area::-webkit-scrollbar-thumb{
  background: rgba(15,20,30,0.2);
  border-radius: 3px;
}

.content-area::-webkit-scrollbar-thumb:hover{
  background: rgba(15,20,30,0.3);
}

/* Overlay pour mobile */
#sidenav-overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(2px);
  z-index: 1045;
  display: none;
}

/* === Desktop Responsive === */

@media (min-width: 1200px){  
  .mobile-menu-btn{
    display: none;
  }
  
  .header-container{
    padding-left: 2rem;
    padding-right: 2rem;
  }

  #sidenav-overlay{
    display: none !important;
  }
}

@media (max-width: 1199px){
  .content-area{
    padding: 1rem;
  }
}

@media (max-width: 768px){
  .page-title{
    font-size: 1.25rem;
  }
  
  .header-container{
    padding: 0.75rem 1rem;
  }
  
  .brand-title{
    font-size: 1.1rem;
  }
  
  .nav-item{
    padding: 0.875rem 1rem;
  }
  
  .sidebar-footer{
    padding: 1rem;
  }

  .content-area{
    padding: 0.75rem;
  }
}

/* Management Actions */
.management-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.management-section {
  margin-bottom: 2rem;
}

.management-section .modern-form-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(15, 20, 30, 0.04);
  box-shadow: 0 4px 20px rgba(12, 15, 20, 0.04);
}

.management-section .d-flex {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

/* Secondary Button Style */
.btn-secondary-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid rgba(107, 114, 128, 0.2);
  transition: all 0.2s ease-out;
}

.btn-secondary-modern:hover {
  background: rgba(107, 114, 128, 0.15);
  color: #4b5563;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Profil utilisateur */
.user-avatar-mini {
  display: flex;
  align-items: center;
}

.avatar-circle-small {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0a84ff, #0a1367);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.2);
}

.user-info-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15, 20, 30, 0.06);
}

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

.info-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 200px;
  font-weight: 500;
  color: #6b7280;
}

.info-label i {
  width: 16px;
  text-align: center;
  color: #0a84ff;
}

.info-value {
  font-weight: 500;
  color: var(--text-dark);
  flex: 1;
}

.security-tips {
  background: linear-gradient(135deg, rgba(255, 243, 205, 0.1), rgba(255, 237, 160, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.1);
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.tip-item i {
  font-size: 0.75rem;
}

.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .info-label {
    flex: none;
  }
}

/* === Status Badges (Inactivité) === */

.status-green {
  background: linear-gradient(135deg, #34c759, #30d158);
  color: white;
}

.status-yellow-green {
  background: linear-gradient(135deg, #88c999, #66bb6a);
  color: white;
}

.status-yellow {
  background: linear-gradient(135deg, #ffcc02, #ffb000);
  color: white;
}

.status-orange {
  background: linear-gradient(135deg, #ff9500, #ff6b00);
  color: white;
}

.status-red-orange {
  background: linear-gradient(135deg, #ff6347, #ff4500);
  color: white;
}

.status-red {
  background: linear-gradient(135deg, #ff3b30, #d70015);
  color: white;
}

.status-never {
  background: linear-gradient(135deg, #8e8e93, #636366);
  color: white;
}

/* === Status Badges (Solde) === */

.status-positive {
  background: linear-gradient(135deg, #34c759, #30d158);
  color: white;
}

.status-light-negative {
  background: linear-gradient(135deg, #ffcc02, #ffb000);
  color: white;
}

.status-medium-negative {
  background: linear-gradient(135deg, #ff9500, #ff6b00);
  color: white;
}

.status-high-negative {
  background: linear-gradient(135deg, #ff6347, #ff4500);
  color: white;
}

.status-critical-negative {
  background: linear-gradient(135deg, #ff3b30, #d70015);
  color: white;
}

.status-unknown {
  background: linear-gradient(135deg, #8e8e93, #636366);
  color: white;
}

/* === Notification Admin Forms === */

.notification-form-clean {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

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

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

.form-label-clean {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* Radio buttons simples */
.radio-group-clean {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-item-clean {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
}

.radio-item-clean input[type="radio"] {
  margin: 0;
}

/* Sélection utilisateurs multiple simple */
.users-grid-clean {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
}

.user-item-clean {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 0;
}

.user-item-clean:hover {
  background: #f9fafb;
}

.user-item-clean:last-child {
  border-bottom: none;
}

.user-item-clean input[type="checkbox"] {
  margin-right: 0.75rem;
}

.user-name-clean {
  font-weight: 600;
  color: #111827;
  font-size: 0.9rem;
}

.user-username-clean {
  margin-left: 0.5rem;
  color: #6b7280;
  font-size: 0.8rem;
}

/* Utilitaires */
.mt-3 {
  margin-top: 1rem;
}

/* Boutons simples */
.form-actions-clean {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.btn-clean {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

.btn-primary-clean {
  background: var(--cta-gradient);
  color: white;
}

.btn-primary-clean:hover {
  filter: brightness(1.05);
}

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

.btn-secondary-clean:hover {
  background: #4b5563;
}

/* Responsive pour les formulaires notifications */
@media (max-width: 768px) {
  .form-row-clean {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-actions-clean {
    flex-direction: column;
  }

  .users-grid-clean {
    max-height: 150px;
  }
}

/* === Avatar Icons (Notifications) === */

.avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  background: transparent;
  border: none;
}

/* === Utility Classes === */

.word-break-email {
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
  white-space: normal;
}

/* === Notification Cards (Liste) === */

.notification-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.notification-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.notification-header {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.notif-icon {
  font-size: 32px;
  line-height: 1;
  min-width: 40px;
  text-align: center;
}

.notif-info {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #1f2937;
}

.notif-preview {
  margin: 0 0 6px 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.notif-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.notif-status {
  display: flex;
  align-items: center;
}

.notification-details {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 16px 20px;
}

.notification-details .detail-row {
  margin-bottom: 12px;
}

.notification-details .detail-row:last-child {
  margin-bottom: 0;
}

.notification-details .detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.notification-details .detail-value {
  display: block;
  font-size: 0.95rem;
  color: #1f2937;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  max-width: 100%;
}

.notification-actions {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-danger-clean {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  box-shadow: 0 2px 8px rgba(239,68,68,0.08);
  transition: background 0.2s;
}

.btn-danger-clean:hover {
  background: #fecaca;
  color: #b91c1c;
}

@media (max-width: 768px) {
  .notification-header {
    flex-wrap: wrap;
  }
  
  .notif-status {
    width: 100%;
    margin-top: 10px;
  }
  
  .notification-details .detail-value {
    overflow-wrap: anywhere;
  }
}

/* ============================================
   VOLS - Liste des vols à venir (Format Lignes)
   ============================================ */

.vol-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  border: 1px solid rgba(15,20,30,0.04);
  transition: all 0.2s ease-out;
  margin-bottom: 0.5rem;
}

.vol-item:last-child {
  margin-bottom: 0;
}

.vol-item:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12,15,20,0.06);
}

.vol-main-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 120px;
  flex: 0 0 120px;
}

.vol-aircraft {
  font-weight: 600;
  font-size: 1rem;
  color: #1a202c;
}

.vol-date {
  font-size: 0.85rem;
}

.vol-separator {
  display: none;
}

.vol-datetime-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 160px;
  flex: 0 0 160px;
}

.vol-date-header {
  font-size: 0.75rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.vol-time-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.vol-time-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 160px;
  flex: 0 0 160px;
}

.vol-time {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.vol-time-arrow {
  color: #9ca3af;
  font-weight: 300;
}

.vol-info-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.vol-info-item {
  font-size: 0.8rem;
  color: #4b5563;
  padding: 0.375rem 0.75rem;
  background: rgba(10, 132, 255, 0.1);
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.2s ease-out;
  white-space: nowrap;
  border: 1px solid rgba(10, 132, 255, 0.2);
  color: var(--accent);
}

.vol-item:hover .vol-info-item {
  background: rgba(10, 132, 255, 0.15);
}

.vol-info-item.instructor {
  background: rgba(15,20,30,0.05);
  color: #4b5563;
  font-weight: 500;
  border: 1px solid rgba(15,20,30,0.1);
}

.vol-item:hover .vol-info-item.instructor {
  background: rgba(15,20,30,0.08);
}

.vol-info-item.activity {
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent);
  font-weight: 500;
  border: 1px solid rgba(10, 132, 255, 0.2);
}

@media (max-width: 1024px) {
  .vol-item {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .vol-main-info {
    min-width: auto;
    flex: 0 0 auto;
  }
  
  .vol-datetime-block {
    min-width: auto;
    flex: 0 0 auto;
  }
  
  .vol-time-block {
    min-width: auto;
    flex: 0 0 auto;
  }
  
  .vol-info-group {
    flex: 0 0 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .vol-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .vol-main-info {
    width: 100%;
    flex: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .vol-aircraft {
    font-size: 1.1rem;
  }
  
  .vol-datetime-block {
    width: 100%;
    flex: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  
  .vol-date-header {
    text-align: left;
    margin-bottom: 0.5rem;
  }
  
  .vol-time-row {
    justify-content: flex-start;
  }
  
  .vol-time {
    font-size: 1.1rem;
  }
  
  .vol-time-block,
  .vol-info-group {
    width: 100%;
    flex: none;
  }
  
  .vol-info-group {
    gap: 0.5rem;
  }
  
  .vol-info-item {
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
  }
}

/* === Frosted Touch: Modals, Dropdowns & UI Elements === */

/* Modal backdrop with frosted effect */
.modal-content {
  background: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header, .modal-footer {
  background: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.5);
}

/* Dropdown menus */
.dropdown-menu {
  background: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-radius: 12px;
}

.dropdown-item {
  transition: all 0.2s ease-out;
}

.dropdown-item:hover, .dropdown-item.active {
  background: rgba(10,132,255,0.15);
  color: var(--accent);
}

/* Badges */
.badge {
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
}

/* Alerts */
.alert {
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Tooltips */
.tooltip-inner {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-radius: 8px;
}

/* Form groups */
.form-group {
  transition: all 0.2s ease-out;
}

.form-group label {
  font-weight: 500;
  color: #6b7280;
}

/* List items */
.list-item, .list-group-item {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  transition: all 0.2s ease-out;
}

.list-group-item:hover {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  transform: translateX(4px);
}

/* Tables */
.table thead {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
}

.table tbody tr {
  background: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  transition: all 0.2s ease-out;
}

.table tbody tr:hover {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Progress bars */
.progress {
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

.progress-bar {
  background: linear-gradient(90deg, var(--accent), #0a1367);
  box-shadow: 0 0 10px rgba(10,132,255,0.3);
}

/* Frosted glass enhancement for navbar */
.navbar {
  background: rgba(255,255,255,0.65) !important;
  border-bottom: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Enhance scrollbar appearance with frosted touch */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(10,132,255,0.3);
  border-radius: 4px;
  backdrop-filter: blur(var(--blur-sm));
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(10,132,255,0.5);
  backdrop-filter: blur(var(--blur-md));
}

/* Frosted glass for panels and well-like elements */
.panel, .well {
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  border-radius: 12px;
}

/* ============================================
   PUSH NOTIFICATIONS - Frosted UI
   ============================================ */

/* Push Notification Modal Overlay */
.push-notification-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: background 0.3s ease, opacity 0.3s ease;
  padding: 20px;
}

.push-notification-modal-overlay.show {
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

/* Push Modal */
.push-notification-modal {
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  max-width: 450px;
  width: 100%;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
  position: relative;
  animation: modalSlideUp 0.3s ease forwards;
}

.push-notification-modal-overlay.show .push-notification-modal {
  transform: scale(1);
  opacity: 1;
}

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

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5em;
  color: #999;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  color: #333;
  transform: rotate(90deg);
}

.modal-content {
  padding: 40px 30px 30px;
  text-align: center;
}

.modal-icon {
  font-size: 3.5em;
  color: var(--accent);
  margin-bottom: 20px;
  animation: bellRing 0.6s ease-in-out;
}

@keyframes bellRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 20% {
    transform: rotate(-10deg);
  }
  30%, 50%, 70%, 90% {
    transform: rotate(10deg);
  }
  40%, 60%, 80% {
    transform: rotate(-10deg);
  }
}

.modal-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.modal-description {
  font-size: 1em;
  color: #666;
  margin: 0 0 25px 0;
  line-height: 1.6;
}

.modal-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  text-align: left;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  background: rgba(10, 132, 255, 0.08);
  border-radius: 8px;
  font-size: 0.95em;
  color: #333;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid rgba(10, 132, 255, 0.1);
}

.feature i {
  color: var(--accent);
  font-size: 1.2em;
  min-width: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding: 0 30px 30px;
}

.btn-modal {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

.btn-modal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-modal-cancel {
  background: rgba(243, 244, 246, 0.8);
  color: #666;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-modal-cancel:hover:not(:disabled) {
  background: rgba(229, 231, 235, 0.9);
}

.btn-modal-primary {
  background: linear-gradient(135deg, var(--accent), #0056b3);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.3);
}

.btn-modal-primary:hover:not(:disabled) {
  box-shadow: 0 12px 30px rgba(10, 132, 255, 0.4);
  transform: translateY(-2px);
}

.modal-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 4em;
  color: #10b981;
  margin-bottom: 20px;
  animation: successPulse 0.6s ease;
}

@keyframes successPulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-success h2 {
  color: #10b981;
  font-size: 1.6em;
  margin-bottom: 10px;
}

.modal-success p {
  color: #666;
}

.modal-error {
  text-align: center;
  padding: 20px 0;
}

.error-icon {
  font-size: 4em;
  color: #ef4444;
  margin-bottom: 20px;
  animation: errorShake 0.4s ease;
}

@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.modal-error h2 {
  color: #ef4444;
  font-size: 1.6em;
  margin-bottom: 10px;
}

.modal-error p {
  color: #666;
}

/* Push Notification Card - Frosted Glass */
.push-notification-card {
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  padding: 20px;
  background: rgba(255,255,255,0.65);
  box-shadow: 0 8px 20px rgba(12,15,20,0.08);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
}

.push-notification-card:hover {
  box-shadow: 0 12px 32px rgba(12,15,20,0.12);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(200%);
  transform: translateY(-2px);
}

.push-status-header {
  border-bottom: 2px solid rgba(240, 240, 240, 0.6);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.push-status-header h5 {
  color: #2c3e50;
  font-weight: 600;
  margin: 0;
}

.push-status-header i {
  color: var(--accent);
  margin-right: 8px;
}

.push-status-content {
  margin-bottom: 20px;
}

.push-status-content p {
  color: #555;
  margin: 10px 0;
  line-height: 1.6;
}

.status-line {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(245, 245, 245, 0.6);
}

.status-line:last-child {
  border-bottom: none;
}

.status-label {
  font-weight: 600;
  color: #666;
  min-width: 120px;
  padding-right: 15px;
}

.status-value {
  flex: 1;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-value i {
  font-size: 0.9em;
}

.push-actions {
  display: flex;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(240, 240, 240, 0.6);
}

.push-actions .btn {
  flex: 1;
  font-size: 0.9em;
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

.push-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.push-actions .btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.push-actions .btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.push-actions .btn-outline-primary {
  color: var(--accent);
  border-color: rgba(10, 132, 255, 0.3);
  background: rgba(10, 132, 255, 0.05);
}

.push-actions .btn-outline-primary:hover {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.push-actions .btn-outline-danger {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.05);
}

.push-actions .btn-outline-danger:hover {
  background-color: #e74c3c;
  color: white;
  border-color: #e74c3c;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.push-actions .btn i {
  margin-right: 6px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.push-notification-card {
  animation: slideIn 0.3s ease;
}

.push-notification-card.push-notification-inactive {
  background: rgba(254, 243, 199, 0.6);
  border: 2px solid rgba(251, 191, 36, 0.3);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
}

.push-notification-card.push-notification-inactive .push-status-header {
  border-bottom-color: rgba(252, 211, 77, 0.4);
}

.push-notification-card.push-notification-inactive .push-actions {
  border-top-color: rgba(252, 211, 77, 0.4);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  padding: 8px 0;
}

.feature-item i {
  font-size: 1.1em;
  min-width: 20px;
  color: var(--accent);
}

.push-notification-card.push-notification-inactive .push-status-header small {
  display: block;
  margin-top: 5px;
  color: #666;
}

/* Responsive Push Notifications */
@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px 20px;
  }
  
  .modal-icon {
    font-size: 3em;
  }
  
  .modal-title {
    font-size: 1.5em;
  }
  
  .modal-actions {
    flex-direction: column;
    padding: 0 20px 20px;
  }
  
  .btn-modal {
    width: 100%;
  }
  
  .push-actions {
    flex-direction: column;
  }
  
  .push-actions .btn {
    width: 100%;
  }
  
  .status-line {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .status-label {
    min-width: auto;
    margin-bottom: 5px;
  }
}

/* Enhanced transitions for smooth interactions */
* {
  transition: backdrop-filter 0.3s ease-out, background-color 0.2s ease-out;
}
/* === NEW CSS CLASSES FOR CLEANED INLINE STYLES === */

/* Card image extra large (400px height with gradient) */
.card-img-xl {
  height: 400px;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-img-xl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Card image top (responsive) */
.card-img-top {
  width: 100%;
  overflow: hidden;
}

.card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Info box with blue background and border */
.info-box {
  padding: 1rem 1.5rem;
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.1);
  border-radius: 12px;
}

/* Font weight 600 */
.fw-600 {
  font-weight: 600;
}

/* Text color styles */
.text-navy {
  color: #0a1367;
}

.text-slate {
  color: #1a202c;
}

/* Flex and gap utilities - Enhanced gap for 15px */
.gap-15px {
  gap: 15px;
}

/* Utility for icon styling */
.icon-navy {
  color: #3b82f6;
}

/* Info banners / note blocks */
.info-banner {
  padding: 0.75rem;
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.1);
  border-radius: 12px;
}

.info-banner-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #546e7a;
}

.info-label { font-weight: 600; color: #37474f; }
.info-time { margin-left: 5px; font-weight: 600; color: #0a1367; }
.info-subtext { font-size: 12px; color: #7f8c8d; }

.note-card {
  padding: 1rem 1.5rem;
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.1);
  border-radius: 12px;
}

.note-icon {
  color: #3b82f6;
  margin-top: 2px;
}

.placeholder-loading {
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  color: #7f8c8d;
}

.error-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 12px;
}

.error-card-title {
  margin-bottom: 10px;
  color: #e74c3c;
}

.error-card-text {
  color: #7f8c8d;
}

.heading-strong { font-weight: 700; color: #1a202c; }
.subheading-strong { font-weight: 600; color: #1a202c; }

/* =========================================
   Météo - Tabs, cartes et grilles
   (ex-meteo/meteo.html)
   ========================================= */
.meteo-type-selector {
  background: linear-gradient(135deg, #0a1367 0%, #0a1367 100%);
  border-radius: 16px;
  padding: 12px;
}

.meteo-type-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.meteo-type-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 12px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.meteo-type-tab:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-2px);
}

.meteo-type-tab.active {
  background: white;
  color: #0a1367;
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.meteo-type-icon {
  font-size: 24px;
  line-height: 1;
}

.meteo-type-text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meteo-section {
  display: none;
}

.meteo-section.active {
  display: block;
}

@media (max-width: 768px) {
  .meteo-type-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .meteo-type-tab {
    padding: 12px 10px;
  }

  .meteo-type-icon {
    font-size: 20px;
  }

  .meteo-type-text {
    font-size: 11px;
  }
}

.apple-tabs-container {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.apple-tabs-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.apple-tabs {
  display: flex;
  gap: 6px;
  min-width: min-content;
  padding: 0;
}

.apple-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  min-width: fit-content;
  white-space: nowrap;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.apple-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.apple-tab-icon svg {
  width: 18px;
  height: 18px;
}

.apple-tab-text {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.apple-tab.active {
  background: white;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.apple-tab:not(.active):hover {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.7);
}

.apple-tab:active {
  transform: scale(0.96);
}

.apple-tab.active:active {
  transform: scale(0.96) translateY(-1px);
}

.apple-tab-search {
  padding: 10px 14px;
}

.tab-content {
  animation: fadeIn 0.3s ease-in-out;
  background: transparent;
}

.tab-pane {
  background: transparent;
}

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

@media (max-width: 768px) {
  .apple-tabs-container {
    padding: 6px;
    border-radius: 14px;
    margin-left: -8px;
    margin-right: -8px;
    background: #ffffff !important;
  }
  .apple-tab {
    padding: 9px 16px;
    font-size: 14px;
    border-radius: 9px;
  }
  .apple-tab-text { font-weight: 600; }
  .apple-tab-search { padding: 9px 12px; }
  .apple-tabs-scroll::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
    border-radius: 0 14px 14px 0;
  }
  .apple-tabs { padding-right: 40px; }
}

.meteo-card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.apple-tabs-scroll { scroll-behavior: smooth; }

.temsi-tabs-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.temsi-tabs { display: flex; gap: 6px; }

.temsi-tab {
  flex: 1;
  padding: 10px 18px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.02em;
}

.temsi-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.7);
}

.temsi-tab.active {
  background: white;
  color: #0a1367;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.temsi-chart-grid { display: flex; flex-direction: column; gap: 12px; }

.chart-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.chart-card.current {
  background: linear-gradient(135deg, #0a1367 0%, #1a2578 100%);
  color: white;
}

.chart-card.available {
  background: #ffffff;
  color: #2c3e50;
  border-color: #e0e6ed;
}

.chart-card.available:hover { border-color: #0a1367; }

.chart-card.expired {
  background: #f5f5f5;
  color: #95a5a6;
  opacity: 0.7;
}

.chart-card.future {
  background: #f8f9fa;
  color: #95a5a6;
  opacity: 0.7;
  cursor: not-allowed;
}

.chart-card.future:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.chart-time {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.chart-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.chart-card.current .chart-status { background: rgba(255, 255, 255, 0.25); }

.chart-card.available .chart-status {
  background: rgba(10, 19, 103, 0.1);
  color: #0a1367;
}

.chart-card.expired .chart-status {
  background: rgba(149, 165, 166, 0.2);
  color: #7f8c8d;
}

.chart-date {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 6px;
  font-weight: 500;
}

.availability-info { font-size: 12px; opacity: 0.7; font-weight: 500; }

.countdown {
  font-size: 13px;
  font-weight: 600;
  color: #e74c3c;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.countdown-icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #e74c3c;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.tap-hint {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 10px;
  opacity: 0.5;
  font-weight: 600;
}

@media (max-width: 768px) {
  .temsi-tab { padding: 9px 14px; font-size: 14px; }
  .chart-card { padding: 16px; }
  .chart-time { font-size: 20px; }
}

/* =========================================
   Cartes VAC & hover effects
   ========================================= */
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.carte-type-selector {
  background: linear-gradient(135deg, #0a1367 0%, #0a1367 100%);
  border-radius: 16px;
  padding: 12px;
}

.carte-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.carte-type-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 12px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.carte-type-tab:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-2px);
}

.carte-type-tab.active {
  background: white;
  color: #0a1367;
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carte-type-icon { font-size: 24px; line-height: 1; }
.carte-type-text { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.carte-section { display: none; }
.carte-section.active { display: block; }

.carte-result-card {
  background: linear-gradient(135deg, #0a1367 0%, #1a2578 100%);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

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

.carte-result-header { display: flex; justify-content: space-between; align-items: center; }
.carte-result-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; color: white; }
.carte-result-subtitle { font-size: 14px; margin: 0; opacity: 0.9; color: rgba(255, 255, 255, 0.85); }
.carte-result-icon { font-size: 28px; opacity: 0.7; }

.checkbox-container-custom {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  font-size: 1.05em;
  user-select: none;
}

.checkbox-container-custom input[type="checkbox"] { display: none; }

.checkmark-custom {
  width: 24px;
  height: 24px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
  background: white;
  flex-shrink: 0;
}

.checkbox-container-custom:hover .checkmark-custom { border-color: #0a1367; }

.checkbox-container-custom input[type="checkbox"]:checked + .checkmark-custom {
  background: linear-gradient(135deg, #0a1367, #1a2578);
  border-color: #0a1367;
}

.checkbox-container-custom input[type="checkbox"]:checked + .checkmark-custom::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label { font-weight: 600; color: #374151; }
.info-icon { margin-left: 8px; color: #3b82f6; cursor: help; }

.carte-result-card:hover .carte-result-icon { opacity: 1; }

.carte-result-card .availability-info { font-size: 12px; opacity: 0.7; }

@media (max-width: 768px) {
  .carte-result-card { padding: 18px; }
  .carte-result-title { font-size: 18px; }
  .carte-result-icon { font-size: 24px; }
}

/* Dashboard alerts */
.modern-alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-radius: 16px;
  border: 1px solid rgba(40, 167, 69, 0.2);
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.success-icon-container {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.success-title {
  font-weight: 700;
  color: #155724;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.success-details {
  color: #155724;
  font-size: 0.875rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.modern-alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 193, 7, 0.2);
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

.warning-icon-container {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.warning-title {
  font-weight: 700;
  color: #856404;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.warning-details {
  color: #856404;
  font-size: 0.875rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Empty state helpers */
.empty-state-compact {
  padding: 1.5rem;
}

.empty-icon-sm {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.empty-state-title-sm {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.text-xs {
  font-size: 0.85rem;
}

.empty-state-dashed {
  background: rgba(10, 19, 103, 0.02);
  border-radius: 14px;
  border: 1px dashed rgba(10, 19, 103, 0.1);
}

/* Liens utiles */
.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.btn-navy {
  background-color: #0a1367 !important;
  color: white !important;
  border-color: #0a1367 !important;
}

.btn-navy:hover {
  opacity: 0.9;
}

.link-icon-lg {
  font-size: 1.5rem;
}

/* Avions - Documents */
.document-upload-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.document-upload-form .form-group {
  margin-bottom: 0;
}

.document-upload-form .form-label {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-size: 14px;
}

.document-upload-form input,
.document-upload-form select {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.document-upload-form input:focus,
.document-upload-form select:focus {
  border-color: #0a1367;
  box-shadow: 0 0 0 3px rgba(10, 19, 103, 0.1);
  outline: none;
}

.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
  z-index: 2;
}

.file-input-label {
  display: block;
  padding: 10px 14px;
  background: white;
  border: 2px dashed rgba(10, 19, 103, 0.2);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  color: #6c757d;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.file-input-wrapper:hover .file-input-label {
  border-color: #0a1367;
  background: rgba(10, 19, 103, 0.02);
  color: #0a1367;
}

.documents-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.document-list-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.document-list-item:hover {
  border-color: rgba(10, 19, 103, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.document-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.document-item-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.document-item-info {
  min-width: 0;
  flex: 1;
}

.document-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-word;
  margin-bottom: 4px;
}

.document-item-meta {
  font-size: 13px;
  color: #6c757d;
}

.document-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .document-upload-card {
    padding: 16px;
  }

  .document-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .document-item-header {
    width: 100%;
  }

  .document-item-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Classement - Ranking */
.ranking-type-selector {
  background: linear-gradient(135deg, #0a1367 0%, #0a1367 100%);
  border-radius: 16px;
  padding: 12px;
}

.ranking-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ranking-type-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 12px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.ranking-type-tab:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-2px);
}

.ranking-type-tab.active {
  background: white;
  color: #0a1367;
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ranking-type-icon {
  font-size: 24px;
  line-height: 1;
}

.ranking-type-text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ranking-section {
  display: none;
}

.ranking-section.active {
  display: block;
}

.apple-tabs-container {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.apple-tabs-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.apple-tabs {
  display: flex;
  gap: 6px;
  min-width: min-content;
  padding: 0;
}

.apple-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  min-width: fit-content;
  white-space: nowrap;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.apple-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.apple-tab-text {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.apple-tab.active {
  background: white;
  color: var(--accent);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.apple-tab:not(.active):hover {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.7);
}

.apple-tab:active {
  transform: scale(0.96);
}

.apple-tab.active:active {
  transform: scale(0.96) translateY(-1px);
}

.podium-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.podium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.runner-up-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.runner-up-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .apple-tabs-container {
    padding: 6px;
    border-radius: 14px;
  }
  
  .apple-tab {
    padding: 9px 16px;
    font-size: 14px;
    border-radius: 9px;
  }
  
  .apple-tab-text {
    font-weight: 600;
  }

  .podium-card {
    padding: 1.5rem 1rem;
  }

  /* Classement responsive table */
  .col-solo-vols,
  .col-solo-heures,
  .col-dc-vols,
  .col-dc-heures {
    display: none;
  }
}

/* Login & Password Reset Pages (standalone layout) */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="1.5"/></g></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.login-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.login-title {
  font-weight: 700;
  font-size: 2rem;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0;
}

.login-form {
  width: 100%;
}

.form-group-modern {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-label-modern {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.form-input-modern {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(15,20,30,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.95);
  font-size: 1rem;
  transition: all 0.3s ease-out;
  font-family: inherit;
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10,132,255,0.1);
  transform: translateY(-1px);
}

.login-error {
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 2px solid rgba(239,68,68,0.2);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-login-modern {
  width: 100%;
  background: var(--cta-gradient);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease-out;
  cursor: pointer;
  font-family: inherit;
  margin-top: 1rem;
}

.btn-login-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,103,217,0.3);
}

.btn-login-modern:active {
  transform: translateY(0);
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.back-link:hover {
  opacity: 0.7;
}

@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  
  .login-title {
    font-size: 1.75rem;
  }
  
  .login-icon {
    font-size: 3rem;
  }
}

/* No-select utility for login pages */
.login-no-select * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.login-no-select input,
.login-no-select textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Notifications push banner */
.push-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 16px 24px;
  max-width: 600px;
  width: 90%;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.push-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.push-banner-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.push-banner-text {
  flex: 1;
}

.push-banner-text h6 {
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.push-banner-text p {
  color: #6c757d;
  font-size: 14px;
}

.push-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .push-banner {
    top: 60px;
    padding: 12px 16px;
  }

  .push-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .push-banner-actions {
    width: 100%;
  }

  .push-banner-actions button {
    flex: 1;
  }
}

/* Notification Settings */
.notification-settings-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 0 auto;
}

.settings-status {
  padding: 20px;
  background: rgba(10, 19, 103, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(10, 19, 103, 0.1);
}

.status-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  font-size: 24px;
}

.status-icon.success {
  background: #d4edda;
  color: #28a745;
}

.status-icon.warning {
  background: #fff3cd;
  color: #ffc107;
}

.status-icon.error {
  background: #f8d7da;
  color: #dc3545;
}

.settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}

.compat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  font-size: 14px;
}

.compat-item i {
  font-size: 32px;
}

@media (max-width: 768px) {
  .notification-settings-card {
    padding: 20px;
  }
}

/* Preparation/Aircraft selectors */
.aircraft-selector {
  background: linear-gradient(135deg, #0a1367 0%, #0a1367 100%);
  border-radius: 16px;
  padding: 12px;
}

.aircraft-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
}

.aircraft-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.aircraft-tab:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-2px);
}

.aircraft-tab.active {
  background: white;
  color: #0a1367;
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aircraft-tab-icon {
  font-size: 24px;
  line-height: 1;
}

.aircraft-tab-text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aircraft-section {
  display: none;
}

.aircraft-section.active {
  display: block;
}

.aircraft-section.active {
  animation: fadeIn 0.3s ease;
}

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

/* Document tiles/grid */
.documents-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.document-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #1a1a1a;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  min-height: 140px;
}

.document-tile:hover {
  transform: translateY(-4px);
  background: rgba(10, 19, 103, 0.02);
  border-color: rgba(10, 19, 103, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.document-tile-icon {
  font-size: 32px;
  line-height: 1;
}

.document-tile-title {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  word-break: break-word;
  flex: 1;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .aircraft-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .aircraft-selector {
    padding: 10px;
  }

  .aircraft-tab {
    padding: 12px 14px;
    font-size: 12px;
  }

  .aircraft-tab-icon {
    font-size: 20px;
  }

  .documents-list {
    grid-template-columns: 1fr;
  }
}

/* Webcam video container */
.webcam-container {
  max-width: 1200px;
  margin: 0 auto;
}

.webcam-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.webcam-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.webcam-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .webcam-card {
    padding: 16px;
  }
}

/* Mobile typography adjustments for Montserrat */
@media (max-width: 768px) {
  html, body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4, h5, h6 {
    font-size: 1rem;
  }

  p, .text-muted, .small-muted {
    font-size: 0.9rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .display-5 {
    font-size: 2rem;
  }
}

/* ============================================
   FILTRES MODERNES - v3.9
   ============================================ */

/* Wrapper des filtres */
.filters-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Groupe de filtre individuel */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group-large {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .filter-group-large {
    grid-column: span 1;
  }
}

/* Label du filtre */
.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Input wrapper avec icône */
.filter-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-icon {
  position: absolute;
  left: 12px;
  color: #888;
  font-size: 0.9rem;
  pointer-events: none;
}

.filter-input-wrapper .filter-input {
  padding-left: 38px;
}

/* Input et Select communs */
.filter-input,
.filter-select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background-color: #fff;
  color: #333;
  transition: all 0.2s ease;
  outline: none;
}

.filter-input:hover,
.filter-select:hover {
  border-color: #cbd5e1;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background-color: #fff;
}

.filter-input::placeholder {
  color: #9ca3af;
}

.filter-date {
  cursor: pointer;
}

/* Select spécifique */
.filter-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.7rem center;
  background-repeat: no-repeat;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

/* Boutons d'action des filtres - compacts */
.filters-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.btn-filter-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-filter-search {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.btn-filter-search:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  transform: translateY(-1px);
}

.btn-filter-reset {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: white;
}

.btn-filter-reset:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: white;
  transform: translateY(-1px);
}

/* Résumé des filtres */
.filters-summary {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.filters-count {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

/* ============================================
   ROW DE MOUVEMENT - Style pilote
   ============================================ */

.movement-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

/* Datetime à gauche sur desktop */
.movement-datetime {
  text-align: center;
  min-width: 80px;
}

.datetime-main {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.datetime-sub {
  font-size: 0.8rem;
  color: #64748b;
}

.movement-row:hover {
  background-color: #f8fafc;
}

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

/* Wrapper des badges desktop */
.movement-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.movement-badges > div {
  display: inline-flex;
}

/* Responsive tablette */
@media (max-width: 992px) {
  .movement-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "datetime info"
      "badges badges";
    gap: 0.75rem;
  }
  
  .movement-datetime {
    grid-area: datetime;
  }
  
  .movement-main-info {
    grid-area: info;
  }
  
  .movement-badges {
    grid-area: badges;
    margin-top: 0.5rem;
  }
}

/* Responsive mobile */
@media (max-width: 768px) {
  /* Container mobile */
  .modern-list-container {
    padding: 1rem;
    overflow: hidden;
  }
  
  /* Filtres mobile */
  .filters-wrapper {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
  }
  
  .filter-group-large {
    grid-column: span 1;
  }
  
  .filter-group {
    width: 100%;
    max-width: 100%;
  }
  
  .filter-input,
  .filter-select,
  .filter-date {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Fix pour les inputs date sur iOS */
  input[type="date"].filter-input,
  input[type="date"].filter-date {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
  }
  
  .filters-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-filter-action {
    width: 100%;
    justify-content: center;
  }
  
  /* Liste header mobile */
  .modern-list-container .d-flex.justify-content-between {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start !important;
  }

  /* Movement row mobile - layout carte claire */
  .movement-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "info datetime"
      "badges badges";
    gap: 0.5rem;
    padding: 1rem;
    align-items: start;
  }
  
  /* Date/heure - droite, première ligne (ordre HTML: 1er) */
  .movement-datetime {
    grid-area: datetime;
    text-align: right;
    align-self: start;
    min-width: auto;
  }
  
  .datetime-main {
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  .datetime-sub {
    font-size: 0.7rem;
  }
  
  /* Info principale - gauche, première ligne (ordre HTML: 2e) */
  .movement-main-info {
    grid-area: info;
    min-width: 0;
  }
  
  .movement-title {
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  .movement-pilot {
    font-size: 0.8rem;
    margin-top: 0.15rem;
  }
  
  .movement-refus-reason {
    font-size: 0.75rem;
    margin-top: 0.15rem;
  }
  
  /* Wrapper badges - toute la largeur, deuxième ligne */
  .movement-badges {
    grid-area: badges;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
  }
  
  .movement-badges > div {
    display: inline-flex;
  }
  
  .status-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
  }
  
  .movement-activities {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .movement-title {
    font-size: 0.85rem;
  }
  
  .movement-pilot,
  .movement-refus-reason {
    font-size: 0.72rem;
  }
  
  .datetime-main {
    font-size: 0.82rem;
  }
  
  .datetime-sub {
    font-size: 0.65rem;
  }
  
  .status-badge {
    font-size: 0.68rem;
    padding: 0.18rem 0.4rem;
  }
}

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

.datetime-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.datetime-sub {
  font-size: 0.75rem;
}

.movement-main-info {
  min-width: 0;
}

.movement-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.movement-pilot {
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.movement-activities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* ============================================
   STATUS BADGES UNIFORMES
   ============================================ */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-active {
  background-color: #dcfce7;
  color: #166534;
}

.status-inactive {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-neutral {
  background-color: #e0f2fe;
  color: #0369a1;
}

.status-door {
  background-color: #fef3c7;
  color: #92400e;
}

.status-aircraft {
  background-color: #e0f2fe;
  color: #0369a1;
}

.status-activity {
  background-color: #ede9fe;
  color: #6d28d9;
}

.status-location {
  background-color: #f1f5f9;
  color: #475569;
}

.status-muted {
  background-color: #f8fafc;
  color: #94a3b8;
}

/* Raison de refus sous le nom du pilote */
.movement-refus-reason {
  font-size: 0.85rem;
  color: #dc2626;
  margin-top: 0.15rem;
}

/* ============================================
   RESPONSIVE MANAGEMENT SECTION
   ============================================ */
@media (max-width: 768px) {
  .management-section .modern-form-card {
    padding: 1rem;
  }
  
  .management-section .d-flex.justify-content-between {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch !important;
  }
  
  .management-section h5 {
    font-size: 1rem;
    text-align: center;
  }
  
  .management-section .btn-action-modern {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
  }
}
