/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Status Colors (Global) */
  --color-success: #10b981; /* Smaragdgrün */
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-error: #ef4444; /* Rot */
  --color-error-bg: rgba(239, 68, 68, 0.1);
  --color-info: #3b82f6; /* Blau */
  --color-info-bg: rgba(59, 130, 246, 0.1);
  --color-warning: #f59e0b; /* Gelb */
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ========================================== */
  /* DARK THEME (DEFAULT)                       */
  /* ========================================== */
  --bg-main: #1e293b; /* Slate 800 */
  --bg-card: rgba(30, 41, 59, 0.7); /* Slate 800 */
  --bg-card-hover: rgba(51, 65, 85, 0.9); /* Slate 700 */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-focus: rgba(14, 165, 233, 0.5); /* Blue Focus */
  
  --primary: #0ea5e9; /* Electric Blue */
  --primary-hover: #0284c7;
  --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  
  --color-accent: #f97316; /* Bau-Orange for special accents */
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-on-primary: #ffffff;
  
  --bg-sidebar: rgba(30, 41, 59, 0.85);
  --bg-sidebar-footer: rgba(15, 23, 42, 0.3);
  --bg-main-content: rgba(30, 41, 59, 0.9);
  --bg-input: rgba(0, 0, 0, 0.2);
  --bg-glow-opacity: 0.15;
  --text-logo-gradient: linear-gradient(to right, #38bdf8, #0ea5e9);
  --table-tr-hover: rgba(255, 255, 255, 0.02);
  --bg-modal: rgba(0, 0, 0, 0.7);
}

/* ========================================== */
/* LIGHT THEME OVERRIDES                      */
/* ========================================== */
body.light-theme {
  --bg-main: #f1f5f9; /* Slate 100 */
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-focus: rgba(14, 165, 233, 0.6);
  
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #475569; /* Slate 600 */
  
  --bg-sidebar: rgba(248, 250, 252, 0.85); /* Slate 50 */
  --bg-sidebar-footer: rgba(241, 245, 249, 0.5);
  --bg-main-content: rgba(241, 245, 249, 0.9); /* Slate 100 */
  --bg-input: rgba(255, 255, 255, 0.9);
  --bg-glow-opacity: 0.05;
  --text-logo-gradient: linear-gradient(to right, #0f172a, #334155);
  --table-tr-hover: rgba(0, 0, 0, 0.02);
  --bg-modal: rgba(0, 0, 0, 0.4);
  
  /* Status Colors adaptions for light bg */
  --color-success-bg: rgba(16, 185, 129, 0.15);
  --color-error-bg: rgba(239, 68, 68, 0.15);
  --color-info-bg: rgba(59, 130, 246, 0.15);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ========================================== */
/* GLASS THEME OVERRIDES                      */
/* ========================================== */
body:not(.light-theme).glass-theme {
  --bg-main: #0f172a; /* Softer dark glass background */
  --bg-card: rgba(30, 41, 59, 0.4);
  --bg-card-hover: rgba(51, 65, 85, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-focus: rgba(14, 165, 233, 0.7);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --bg-sidebar: rgba(15, 23, 42, 0.6);
  --bg-sidebar-footer: rgba(15, 23, 42, 0.8);
  --bg-main-content: rgba(15, 23, 42, 0.75);
  --bg-input: rgba(30, 41, 59, 0.5);
  --bg-glow-opacity: 0.25;
  --text-logo-gradient: linear-gradient(to right, #ffffff, #cbd5e1);
  --table-tr-hover: rgba(255, 255, 255, 0.03);
  --bg-modal: rgba(0, 0, 0, 0.8);
  
  /* Glassmorphism specific effects */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.glass-theme .card,
body.glass-theme .sidebar,
body.glass-theme .header,
body.glass-theme .modal-content,
body.glass-theme .settings-form-grid .form-group,
body.glass-theme .gewerk-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body.glass-theme input,
body.glass-theme select,
body.glass-theme textarea {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth Theme Transitions */
body, 
.sidebar, 
.sidebar-footer, 
.main-content, 
.card, 
input, 
select, 
button, 
td, 
th, 
h1, 
h2, 
h3, 
h4, 
p, 
span, 
a,
.input-wrapper input {
  transition: background var(--transition-normal), 
              background-color var(--transition-normal), 
              border-color var(--transition-fast), 
              color var(--transition-fast), 
              box-shadow var(--transition-normal),
              opacity var(--transition-fast),
              transform var(--transition-normal);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Glow Effects */
.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: var(--bg-glow-opacity);
  pointer-events: none;
  z-index: -1;
  animation: float 20s ease-in-out infinite alternate;
}

.bg-glow-1 {
  top: -10%;
  left: -10%;
  background: var(--primary);
}

.bg-glow-2 {
  bottom: -10%;
  right: -10%;
  background: var(--color-info);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Cards (Glassmorphism) */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-on-primary);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6), var(--shadow-glow);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.light-theme .btn-secondary {
  background: rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-danger {
  background: var(--color-error-bg);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: var(--color-error);
  color: #fff;
}

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Inputs & Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-input);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i {
  color: var(--primary);
}


.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  transition: background var(--transition-normal), border-color var(--transition-fast), color var(--transition-fast);
}

/* Alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

.alert.error {
  background: var(--color-error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.light-theme .alert.error {
  color: #c084fc; /* Or keep standard red */
  color: #dc2626;
}

.alert.success {
  background: var(--color-success-bg);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.light-theme .alert.success {
  color: #059669;
}

.alert.info {
  background: var(--color-info-bg);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.light-theme .alert.info {
  color: #2563eb;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   THEME SELECTOR DROPDOWN STYLING
   ========================================================================== */
.theme-selector {
  position: relative;
  display: inline-block;
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 140px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.theme-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 550;
  border-radius: 6px;
  text-align: left;
}

.theme-opt i {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.theme-opt:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.light-theme .theme-opt:hover {
  background: rgba(0, 0, 0, 0.03);
}

.theme-opt.active {
  background: var(--primary-gradient);
  color: var(--text-on-primary);
}

.theme-opt.active i {
  color: var(--text-on-primary);
}

/* Floating Theme Selector for Auth pages */
.theme-selector-floating {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
}

/* ==========================================================================
   AUTH LAYOUT (LOGIN & CHANGE PW)
   ========================================================================== */
.auth-container {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  margin: 20px;
  z-index: 10;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.logo i {
  color: var(--primary);
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.3));
}

.logo span {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--text-logo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-header .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   MAIN APP LAYOUT (DASHBOARD)
   ========================================================================== */
.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 20;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-layout.sidebar-collapsed .sidebar {
  margin-left: -280px !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

#bauzeiten-split-container.palette-collapsed {
  grid-template-columns: 1fr !important;
}

#bauzeiten-split-container.palette-collapsed #bauzeiten-drag-palette {
  display: none !important;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
  flex: 1;
  padding: 24px 16px;
  overflow-y: auto;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-item i {
  width: 20px;
  height: 20px;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.light-theme .nav-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.nav-item:hover i {
  transform: translateX(2px);
}

.nav-item.active {
  color: var(--text-on-primary);
  background: var(--primary-gradient);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.nav-item.active i {
  color: var(--text-on-primary);
}

.sidebar-nav li.disabled .nav-item {
  opacity: 0.4;
  cursor: not-allowed;
}

.sidebar-nav li.disabled .nav-item:hover {
  background: transparent;
  color: var(--text-muted);
}

.sidebar-nav li.disabled .nav-item:hover i {
  transform: none;
}

.badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  margin-left: auto;
}

.light-theme .badge {
  background: rgba(0, 0, 0, 0.05);
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-sidebar-footer);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-info .username {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-info .role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.btn-logout:hover {
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.1);
}

/* Main Content Styling */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-main-content);
}

.topbar {
  height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.topbar h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.content-container {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  position: relative;
  z-index: 10;
}

/* Dashboard Sections */
.dashboard-section {
  animation: fadeIn 0.4s ease;
}

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

/* Welcome Section */
.welcome-card {
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.welcome-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
}

.hero-icon i {
  width: 80px;
  height: 80px;
  color: var(--primary);
  stroke-width: 1.5;
  filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.4));
  animation: pulse 2s infinite alternate;
}

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

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.status-card {
  padding: 24px;
}

.status-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.light-theme .status-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.status-header i {
  width: 22px;
  height: 22px;
}

.status-header .status-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Custom Colors for Icons */
.icon-blue { color: var(--color-info); }
.icon-orange { color: var(--primary); }
.icon-green { color: var(--color-success); }

/* ==========================================================================
   ADMIN LAYOUT & USER TABLE
   ========================================================================== */
.admin-grid {
  grid-template-columns: 1fr 2fr;
}

@media (max-width: 1024px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h3 i {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

#create-user-form {
  padding: 24px;
}

.col-span-2 {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .col-span-2 {
    grid-column: span 1;
  }
}

/* Tables */
.table-container {
  overflow-x: auto;
  padding: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.light-theme td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--table-tr-hover);
}

.badge-role {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-role.admin {
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-role.planer {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.light-theme .badge-role.planer {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-role.user {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.light-theme .badge-role.user {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.status-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.yes {
  color: var(--color-warning);
}
.status-indicator.yes::before {
  background: var(--color-warning);
  box-shadow: 0 0 8px var(--color-warning);
}

.status-indicator.no {
  color: var(--color-success);
}
.status-indicator.no::before {
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.table-actions {
  display: flex;
  gap: 8px;
}

.btn-table-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.btn-table-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.light-theme .btn-table-icon:hover {
  background: rgba(0, 0, 0, 0.03);
}

.btn-table-icon.delete:hover {
  background: var(--color-error-bg);
  color: #f87171;
}

.btn-table-icon.edit:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.light-theme .btn-table-icon.edit:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

.permissions-list-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.permission-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

.permission-item:hover {
  color: var(--text-main);
}

.permission-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   MODAL WINDOWS
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-modal);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 i {
  color: var(--primary);
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.close-modal-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .sidebar-nav {
    padding: 12px;
  }
  
  .sidebar-nav ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  
  .sidebar-nav li {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .nav-item {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .sidebar-footer {
    display: none; /* Auf Mobilgeräten wird es vereinfacht */
  }
  
  .topbar {
    padding: 0 20px;
    height: 60px;
  }
  
  .content-container {
    padding: 20px;
  }
  
  .welcome-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-icon {
    order: -1;
  }
  
  .theme-selector-floating {
    top: 10px;
    right: 10px;
  }
}

/* ==========================================================================
   ADMIN TABS & SETTINGS STYLES
   ========================================================================== */
.admin-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn i {
  width: 18px;
  height: 18px;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.light-theme .tab-btn:hover {
  background: rgba(0, 0, 0, 0.02);
}

.tab-btn.active {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.2);
}

/* Tab-Inhalte */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active-tab {
  display: block !important;
}

/* Einstellungsformulare */
.settings-form {
  padding: 24px;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .settings-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }
  .tab-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

.form-padding {
  padding: 24px;
}

/* Sidebar Logo Styling */
.logo-img {
  max-height: 36px;
  max-width: 36px;
  border-radius: 6px;
  object-fit: contain;
}

.flex-column-gap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Kalender-Layout & Spalten-Positionierung */
.calendar-forms-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.calendar-forms-row > .calendar-form-card {
  flex: 1;
  min-width: 280px;
}

.calendar-tables-row {
  display: flex;
  gap: 24px;
}

.calendar-tables-row > .calendar-table-card {
  flex: 1;
  min-width: 320px;
}

@media (max-width: 992px) {
  .calendar-forms-row,
  .calendar-tables-row {
    flex-direction: column;
  }
}

/* ==========================================================================
   GEWERKE GRID & CARDS
   ========================================================================== */
.gewerke-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

.gewerk-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.gewerk-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.light-theme .gewerk-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gewerk-card.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 1px var(--primary);
}

.light-theme .gewerk-card.active {
  background: rgba(79, 70, 229, 0.05);
}

.gewerk-card-checkbox {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.gewerk-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gewerk-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s;
}

.gewerk-card.active .gewerk-card-title {
  color: var(--primary);
}

.gewerk-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   MITARBEITER WEEKDAY LABELS & BADGES
   ========================================================================== */
.weekday-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 6px 12px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.weekday-label:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.weekday-label input[type="checkbox"] {
  accent-color: var(--primary);
  cursor: pointer;
}

/* Rollen-Badges für Mitarbeiter */
.badge.role-vorarbeiter {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.light-theme .badge.role-vorarbeiter {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.badge.role-arbeiter {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.light-theme .badge.role-arbeiter {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.badge.role-azubi {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.light-theme .badge.role-azubi {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

.badge.role-verwalter {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.light-theme .badge.role-verwalter {
  background: rgba(139, 92, 246, 0.1);
  color: #6d28d9;
}

.badge.role-buero {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.light-theme .badge.role-buero {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

/* ==========================================================================
   ARBEITSZEITEN & SCHULZEITEN-TABELLEN
   ========================================================================== */
.std-workdays-grid {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
}

.std-workdays-grid .form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.std-workdays-grid input[type="number"] {
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  outline: none;
}

.std-workdays-grid input[type="number"]:focus {
  border-color: var(--primary);
}

/* Tabellen in Modals */
#employee-hours-modal table td, #employee-school-modal table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

#employee-hours-modal table input[type="time"],
#employee-school-modal table input[type="time"] {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
}

#employee-hours-modal table input[type="time"]:focus,
#employee-school-modal table input[type="time"]:focus {
  border-color: var(--primary);
}

#employee-hours-modal table input[type="number"] {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  width: 70px;
  font-size: 0.85rem;
  outline: none;
}

#employee-hours-modal table input[type="number"]:focus {
  border-color: var(--primary);
}

.weekday-label input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   ABWESENHEITEN (ABSENCES) & FILTERS & PROGRESS BARS
   ========================================================================== */

/* Badges for absences */
.badge-absence {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-absence.urlaub {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.light-theme .badge-absence.urlaub {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.badge-absence.krank {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.light-theme .badge-absence.krank {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.badge-absence.schule {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.light-theme .badge-absence.schule {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

.badge-absence.sonstiges {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.25);
}
.light-theme .badge-absence.sonstiges {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

/* Custom Trades delete button */
.gewerk-card-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: all var(--transition-fast);
  z-index: 10;
}

.gewerk-card-delete-btn:hover {
  background: var(--color-error-bg);
  color: #f87171;
  transform: scale(1.1);
}

/* Capacity progress bar */
.capacity-progress-container {
  width: 100%;
  max-width: 100px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.capacity-progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.capacity-progress-bar.high {
  background: var(--color-success);
}

.capacity-progress-bar.medium {
  background: #6366f1;
}

.capacity-progress-bar.low {
  background: var(--color-warning);
}

/* Drag to select highlighting */
.absences-cell-free {
  cursor: cell;
  user-select: none;
  -webkit-user-select: none;
}

.absences-cell-free.drag-selecting {
  background: var(--primary) !important;
  opacity: 0.7;
  color: white !important;
}

.absences-cell-occupied {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.absences-cell-occupied:hover {
  filter: brightness(0.85);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.timeline-table-no-select {
  user-select: none;
  -webkit-user-select: none;
}

/* BEM active cell striped background */
.bem-active-cell {
  background: repeating-linear-gradient(
    45deg,
    var(--bg-card),
    var(--bg-card) 6px,
    rgba(239, 68, 68, 0.06) 6px,
    rgba(239, 68, 68, 0.06) 12px
  ) !important;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.15) !important;
}

/* ==========================================
   BAUZEITENPLANUNG & GANTT-STYLING
   ========================================== */

.subtab-btn {
  transition: all 0.2s ease;
  font-weight: 500;
}

.draggable-item {
  padding: 8px 10px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: grab;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.draggable-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.draggable-item:active {
  cursor: grabbing;
}

.gantt-project-row {
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gantt-project-row.drag-over {
  background: rgba(14, 165, 233, 0.08) !important;
  border-color: var(--primary) !important;
  box-shadow: inset 0 0 0 2px var(--primary) !important;
}

.gantt-bar-container {
  position: relative;
  height: 48px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gantt-bar {
  position: absolute;
  top: 6px;
  bottom: 6px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gantt-bar:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-md);
}

.team-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
}

.conflict-card {
  padding: 12px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.04);
  border-radius: var(--radius-md);
}

/* Unified Premium Modal Styles */
.modal .modal-content {
  background: var(--bg-card) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: var(--radius-md);
  color: var(--text-main) !important;
}

.modal .form-control {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px !important;
  font-size: 0.88rem !important;
  font-family: var(--font-sans) !important;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
  width: 100%;
  box-sizing: border-box;
}

.modal select.form-control {
  cursor: pointer;
  background-color: var(--bg-input) !important;
  color: var(--text-main) !important;
}

.modal .form-control:focus {
  border-color: var(--primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25) !important;
}

.modal label {
  font-size: 0.72rem !important;
  letter-spacing: 0.05em;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

/* ========================================== */
/* BAUTAKT AI - FUTURISTIC & ANIMATED (2030)  */
/* ========================================== */

/* Pulsing Glow for Primary Buttons */
@keyframes ai-pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.btn-primary {
  animation: ai-pulse 3s infinite cubic-bezier(0.66, 0, 0, 1);
  transition: all 0.3s ease;
  border: 1px solid rgba(14, 165, 233, 0.5);
}

.btn-primary:hover {
  animation: none;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
  transform: translateY(-2px);
}

/* Matrix Row Hover Animation (Scanline Effect) */
tbody tr {
  transition: all 0.3s ease;
  position: relative;
}
tbody tr:hover {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0) 100%) !important;
  border-left: 2px solid var(--primary);
}

/* Glowing Inputs */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.25) !important;
  border-color: var(--primary) !important;
}

/* Premium Sidebar Logo Styling */
#sidebar-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px;
}

#sidebar-logo-img {
  width: auto !important;
  height: 60px !important;
  max-height: 80px !important;
  max-width: 200px !important;
  object-fit: contain;
  transition: all 0.4s ease;
}

#sidebar-logo-img:hover {
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.8);
  transform: scale(1.05) rotate(2deg);
}

#sidebar-logo-text {
  display: none !important;
}

/* 2030 Interactivity: Hover Scale Effects */
.nav-item {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-item:hover {
  transform: translateX(5px) scale(1.02);
}

#livelog-btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
#livelog-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}


/* ==========================================
   SPLASH SCREEN (INTRO)
   ========================================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-main, #0f172a);
  z-index: 9999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.splash-logo {
  width: 280px;
  max-width: 80vw;
  animation: logoPulse 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
  transform: scale(0.5);
  margin-bottom: 20px;
}



.splash-sub-slogan {
  color: var(--primary-color, #3b82f6);
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.9s forwards;
}

.splash-loader {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-top: 25px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  animation: slideUpFade 1.5s cubic-bezier(0.25, 1, 0.5, 1) 1.2s forwards;
}

.splash-loader::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary-color, #3b82f6);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--primary-color);
  animation: loadingBar 7.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes logoPulse {
  0% { opacity: 0; transform: scale(0.3); }
  40% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 20px rgba(59,130,246,0.5)); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 10px rgba(59,130,246,0.3)); }
}

.splash-status {
  color: var(--text-muted, #94a3b8);
  font-family: 'Outfit', monospace, sans-serif;
  font-size: 0.85rem;
  margin-top: 15px;
  opacity: 0;
  animation: slideUpFade 1.5s cubic-bezier(0.25, 1, 0.5, 1) 1.5s forwards;
  letter-spacing: 0.5px;
  height: 20px;
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes loadingBar {
  0% { width: 0%; }
  25% { width: 20%; }
  50% { width: 60%; }
  75% { width: 85%; }
  100% { width: 100%; }
}
