/* CSS Variables for Design Consistency */
:root {
  /* Primary Colors */
  --primary-blue: #4834d4;
  --primary-purple: #764ba2;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Accent Colors */
  --accent-primary: #ff6b35;
  --accent-secondary: #4c9bd1;
  --accent-hover: #e55a2b;
  --accent-success: #27ae60;
  --accent-warning: #f39c12;
  --accent-error: #e74c3c;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-muted: #95a5a6;
  --text-white: #ffffff;
  
  /* Border and Shadow */
  --border-color: #e9ecef;
  --border-radius: 8px;
  --border-radius-large: 15px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 30px rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  
  /* Typography */
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-xs: 0.8rem;
  --font-size-sm: 0.9rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.2rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 3rem;
}

/* Essential Utility Classes */
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

.show {
  display: block !important;
}

.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.fade.show {
  opacity: 1;
}

/* Modal Utility Classes */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Cookie Banner and Settings */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-md);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-settings {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  pointer-events: none;
}

.notification-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification-panel.show {
  transform: translateX(0);
}

/* Mission Editor Modal */
.mission-editor-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-editor-content {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--primary-gradient);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

/* Header */
.header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--text-white);
}

.logo {
  font-size: var(--font-size-3xl);
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-large);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-hover));
  color: var(--text-white);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
  margin: var(--spacing-sm);
  text-align: center;
  font-family: var(--font-family);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:focus {
  outline: 3px solid rgba(255, 107, 53, 0.3);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-blue), #686de0);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #3b2fa8, var(--primary-blue));
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--text-white);
}

.btn-success {
  background: linear-gradient(45deg, var(--accent-success), #2ecc71);
}

.btn-warning {
  background: linear-gradient(45deg, var(--accent-warning), #e67e22);
}

.btn-error {
  background: linear-gradient(45deg, var(--accent-error), #c0392b);
}

.btn-large {
  font-size: var(--font-size-lg);
  padding: var(--spacing-md) var(--spacing-xl);
}

.btn-small {
  font-size: var(--font-size-sm);
  padding: var(--spacing-xs) var(--spacing-md);
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Stats */
.stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-item {
  flex: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #4834d4;
}

.stat-label {
  color: #b8c5d1;
  margin-top: 5px;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: bold;
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  transition: border-color 0.3s ease;
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.1);
}

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

.form-input:invalid {
  border-color: var(--accent-error);
}

.form-input:valid {
  border-color: var(--accent-success);
}

/* Mission Cards */
.mission-card {
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mission-card:hover {
  border-color: #4834d4;
  transform: translateY(-2px);
}

.mission-card.selected {
  border-color: #4834d4;
  background: #f8f9ff;
}

.mission-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.mission-category {
  color: #b8c5d1;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.mission-description {
  color: #555;
  line-height: 1.5;
}

/* Player Management */
.player-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.player-card {
  text-align: center;
  padding: 20px;
  border: 2px solid #eee;
  border-radius: 10px;
}

.player-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 20px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(45deg, #4834d4, #686de0);
  transition: width 0.3s ease;
}

/* Code Display */
.code-display {
  font-size: 2rem;
  font-weight: bold;
  color: #4834d4;
  letter-spacing: 3px;
  text-align: center;
  padding: 20px;
  background: #f8f9ff;
  border-radius: 10px;
  margin: 20px 0;
  font-family: monospace;
}

/* Alert Messages */
.error,
.success,
.warning,
.info {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius);
  border-left: 4px solid;
  font-weight: 500;
}

.error {
  background: #fee;
  border-left-color: var(--accent-error);
  color: var(--accent-error);
}

.error-text {
  color: var(--accent-error);
  margin: 0;
}

.success {
  background: #efe;
  border-left-color: var(--accent-success);
  color: var(--accent-success);
}

.success-text {
  color: var(--accent-success);
  margin: 0;
}

.warning {
  background: #fff3cd;
  border-left-color: var(--accent-warning);
  color: #856404;
}

.info {
  background: #e3f2fd;
  border-left-color: #2196f3;
  color: #0c5460;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .container {
    padding: var(--spacing-sm);
  }
  
  .logo {
    font-size: var(--font-size-2xl);
  }
  
  .tagline {
    font-size: var(--font-size-base);
  }
  
  .btn {
    padding: 12px 20px;
    font-size: var(--font-size-sm);
    margin: var(--spacing-xs);
    display: block;
    width: 100%;
    text-align: center;
  }
  
  .btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--spacing-xs);
  }
  
  .logo {
    font-size: var(--font-size-xl);
  }
  
  .card {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
  }
  
  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }
}

/* Home Page Specific Styles */
.hero {
  text-align: center;
  margin-bottom: 60px;
  padding-top: var(--spacing-xl);
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: var(--font-size-lg);
  color: var(--text-white);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.how-it-works {
  margin-bottom: 60px;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-white);
  margin-bottom: var(--spacing-xl);
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.step {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
  border-color: var(--accent-primary);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 25px;
  box-shadow: var(--shadow);
}

.step h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.step p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--font-size-base);
}

.missions-preview {
  margin-bottom: 60px;
}

.missions-preview h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-white);
  margin-bottom: var(--spacing-xl);
  font-weight: 700;
}

.mission-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.mission-game {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mission-type {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.actions {
  text-align: center;
  margin-top: 50px;
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Copy button styles */
.copy-btn {
  position: relative;
  overflow: hidden;
}

.copy-btn.copied {
  background: #27ae60 !important;
}

.copy-btn.copied::after {
  content: "✓ Kopiert!";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #27ae60;
  color: white;
}

/* Loading spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Ga
me Category Styles */
.game-category {
    margin-bottom: 20px;
    overflow: hidden;
}

.game-category-header {
    cursor: pointer;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3e8ff 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-category-header:hover {
    background: linear-gradient(135deg, #e3e8ff 0%, #d1d9ff 100%);
    border-color: #4834d4;
    transform: translateY(-2px);
}

.game-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.game-category-content.expanded {
    max-height: 2000px;
    padding: 20px;
}

.category-toggle {
    transition: transform 0.3s ease;
}

.category-toggle.rotated {
    transform: rotate(180deg);
}

/* Missions Grid */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mission-card-compact {
    background: white;
    border: 2px solid #e3e8ff;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mission-card-compact:hover {
    border-color: #4834d4;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(72, 52, 212, 0.2);
}

.mission-card-compact:hover .mission-header {
    background: linear-gradient(135deg, #e8f0ff 0%, #d1e7ff 100%);
}

.mission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 15px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-bottom: 1px solid #e3e8ff;
    margin-bottom: 0;
}

.mission-title {
    font-weight: 600;
    font-size: 1.15rem;
    color: #2c3e50;
    flex: 1;
    line-height: 1.3;
    margin-bottom: 2px;
}

.mission-type {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.mission-type.bestzeit {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border-color: #e55a2b;
}

.mission-type.highscore {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border-color: #388e3c;
}

.mission-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.mission-targets {
    padding: 15px 20px;
    background: #fafbff;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.mission-targets strong {
    display: block;
    color: #2c3e50;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.targets-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.target-badge {
    background: white;
    border: 2px solid #e3e8ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4834d4;
    font-weight: 500;
    transition: all 0.2s ease;
}

.target-badge:hover {
    border-color: #4834d4;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.mission-videos {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9ff;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.video-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e3e8ff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4834d4;
    transition: all 0.2s ease;
}

.video-btn.gameplay {
    border-color: #ff9800;
    color: #ff9800;
}

.video-btn.tutorial {
    border-color: #4caf50;
    color: #4caf50;
}

.video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-btn.gameplay:hover {
    background: #ff9800;
    color: white;
}

.video-btn.tutorial:hover {
    background: #4caf50;
    color: white;
}

.mission-actions {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    background: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Responsive Design for Game Categories */
@media (max-width: 768px) {
    .missions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .mission-type {
        margin-left: 0;
    }
    
    .targets-list {
        flex-direction: column;
        gap: 5px;
    }
    
    .mission-videos {
        flex-direction: column;
        gap: 8px;
    }
}/* A
dmin Game Category Styles */
.admin-game-category {
    margin-bottom: 15px;
    border: 2px solid #e3e8ff;
    border-radius: 12px;
    overflow: hidden;
}

.admin-category-header {
    cursor: pointer;
    padding: 15px 20px;
    background: #f8f9ff;
    transition: all 0.3s ease;
}

.admin-category-header:hover {
    background: #e3e8ff;
}

.admin-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.admin-category-content.expanded {
    max-height: 1500px;
    padding: 20px;
}

.admin-category-toggle {
    transition: transform 0.3s ease;
}

.admin-category-toggle.rotated {
    transform: rotate(180deg);
}

.admin-missions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-mission-item {
    background: #f8f9ff;
    border: 1px solid #e3e8ff;
    border-radius: 8px;
    padding: 15px;
}

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

.admin-mission-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.admin-mission-meta {
    font-size: 0.9rem;
    color: #b8c5d1;
}

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

.admin-mission-description {
    color: #b8c5d1;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.admin-mission-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-target-badge {
    background: white;
    border: 1px solid #4834d4;
    color: #4834d4;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-mission-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-mission-actions {
        align-self: flex-start;
    }
    
    .admin-mission-targets {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}/* 
Create Challenge Game Category Styles */
.create-game-category {
    margin-bottom: 15px;
    border: 2px solid #e3e8ff;
    border-radius: 12px;
    overflow: hidden;
}

.create-category-header {
    cursor: pointer;
    padding: 15px 20px;
    background: #f8f9ff;
    transition: all 0.3s ease;
}

.create-category-header:hover {
    background: #e3e8ff;
}

.create-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.create-category-content.expanded {
    max-height: 2000px;
    padding: 20px;
}

.create-category-toggle {
    transition: transform 0.3s ease;
}

.create-category-toggle.rotated {
    transform: rotate(180deg);
}

.create-missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.create-mission-card {
    display: flex;
    background: white;
    border: 2px solid #e3e8ff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.create-mission-card:hover {
    border-color: #4834d4;
    transform: translateY(-2px);
}

.create-mission-card.selected {
    border-color: #4834d4;
    background: #f8f9ff;
}

.create-mission-checkbox {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9ff;
}

.create-mission-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.create-mission-content {
    flex: 1;
    padding: 15px;
}

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

.create-mission-title {
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
    margin-right: 10px;
}

.create-mission-type {
    background: #4834d4;
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.create-mission-description {
    color: #b8c5d1;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.create-mission-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.create-target-badge {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #b8c5d1;
}

.create-mission-videos {
    display: flex;
    gap: 8px;
}

.create-video-indicator {
    background: #e3e8ff;
    color: #4834d4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.category-selected-count {
    font-weight: bold;
    color: #4834d4;
}

/* Quick Selection Buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Responsive Create Challenge */
@media (max-width: 768px) {
    .create-missions-grid {
        grid-template-columns: 1fr;
    }
    
    .create-mission-card {
        flex-direction: column;
    }
    
    .create-mission-checkbox {
        padding: 10px 15px;
    }
    
    .create-mission-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .create-mission-type {
        align-self: flex-start;
    }
}/*
 Drag & Drop Mission Builder Styles */
.drag-drop-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-height: 600px;
    margin-top: 20px;
}

/* Workspace Panel (Left Side) */
.workspace-panel {
    background: #f8f9ff;
    border: 2px solid #e3e8ff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workspace-header {
    padding: 20px;
    background: linear-gradient(135deg, #4834d4 0%, #6c5ce7 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workspace-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.workspace-stats {
    font-size: 0.9rem;
    opacity: 0.9;
}

.workspace-content {
    flex: 1;
    padding: 20px;
    min-height: 600px;
    position: relative;
}

.workspace-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #b8c5d1;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.empty-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.workspace-missions {
    display: none;
}

.workspace-missions.has-missions {
    display: block;
}

.workspace-mission {
    background: white;
    border: 2px solid #e3e8ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
}

.workspace-mission:hover {
    border-color: #4834d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 52, 212, 0.15);
}

.workspace-mission.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

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

.workspace-mission-title {
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
}

.workspace-mission-order {
    background: #4834d4;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 10px;
}

.workspace-mission-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.workspace-mission-remove:hover {
    background: #c0392b;
}

.workspace-mission-info {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: #b8c5d1;
}

.workspace-summary {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e3e8ff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

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

.summary-label {
    display: block;
    font-size: 0.8rem;
    color: #b8c5d1;
    margin-bottom: 4px;
}

.summary-value {
    display: block;
    font-weight: bold;
    color: #4834d4;
}

.workspace-actions {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e3e8ff;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Mission Pool Panel (Right Side) */
.mission-pool-panel {
    background: white;
    border: 2px solid #e3e8ff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pool-header {
    padding: 20px;
    background: #f8f9ff;
    border-bottom: 1px solid #e3e8ff;
}

.pool-header h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e3e8ff;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4834d4;
}

.pool-filters {
    padding: 15px 20px;
    background: #f8f9ff;
    border-bottom: 1px solid #e3e8ff;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    border: 2px solid #e3e8ff;
    background: white;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #4834d4;
    background: #f8f9ff;
}

.filter-btn.active {
    background: #4834d4;
    color: white;
    border-color: #4834d4;
}

.pool-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 500px;
}

.pool-mission-card {
    background: white;
    border: 2px solid #e3e8ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
}

.pool-mission-card:hover {
    border-color: #4834d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 52, 212, 0.15);
}

.pool-mission-card:active {
    cursor: grabbing;
}

.pool-mission-card.dragging {
    opacity: 0.5;
    transform: rotate(-2deg) scale(0.95);
}

.pool-mission-card.hidden {
    display: none;
}

.pool-mission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.pool-mission-title {
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
    margin-right: 10px;
}

.pool-mission-type {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: white;
}

.pool-mission-type.bestzeit {
    background: #e74c3c;
}

.pool-mission-type.highscore {
    background: #27ae60;
}

.pool-mission-category {
    font-size: 0.8rem;
    color: #b8c5d1;
    margin-bottom: 8px;
}

.pool-mission-description {
    font-size: 0.9rem;
    color: #b8c5d1;
    line-height: 1.4;
    margin-bottom: 10px;
}

.pool-mission-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.pool-target-badge {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #b8c5d1;
}

.pool-mission-videos {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.pool-video-indicator {
    background: #e3e8ff;
    color: #4834d4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.pool-mission-drag-handle {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ccc;
    font-size: 1.2rem;
    cursor: grab;
}

.pool-mission-drag-handle:hover {
    color: #4834d4;
}

/* Drag & Drop States */
.workspace-content.drag-over {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
    border: 2px dashed #27ae60;
}

.workspace-content.drag-invalid {
    background: linear-gradient(135deg, #ffe8e8 0%, #fff0f0 100%);
    border: 2px dashed #e74c3c;
}

.drag-preview {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    background: white;
    border: 2px solid #4834d4;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transform: rotate(5deg);
    opacity: 0.9;
}

.insertion-line {
    height: 3px;
    background: #4834d4;
    border-radius: 2px;
    margin: 5px 0;
    opacity: 0.8;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .drag-drop-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
    }
    
    .workspace-panel {
        order: 2;
    }
    
    .mission-pool-panel {
        order: 1;
    }
    
    .pool-content {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .drag-drop-container {
        gap: 10px;
    }
    
    .workspace-header,
    .pool-header {
        padding: 15px;
    }
    
    .workspace-content,
    .pool-content {
        padding: 15px;
    }
    
    .pool-filters {
        padding: 10px 15px;
    }
    
    .filter-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .workspace-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .pool-mission-card,
    .workspace-mission {
        padding: 12px;
    }
}/* Enhanc
ed Mission Pool Styles */
.pool-mission-requirements,
.pool-mission-targets {
    margin-bottom: 10px;
}

.requirements-label,
.targets-label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #b8c5d1;
    margin-bottom: 5px;
}

.requirements-list,
.targets-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.requirement-badge {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.requirement-badge.more,
.pool-target-badge.more {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    font-style: italic;
}

.pool-mission-meta {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pool-mission-difficulty,
.pool-mission-time {
    font-size: 0.75rem;
}

.difficulty-indicator,
.time-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.pool-mission-actions {
    position: absolute;
    top: 8px;
    right: 35px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pool-mission-card:hover .pool-mission-actions {
    opacity: 1;
}

.pool-action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.pool-action-btn:hover {
    background: white;
    border-color: #4834d4;
    transform: scale(1.1);
}

.info-btn:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.video-btn:hover {
    background: #fff3e0;
    border-color: #ff9800;
}

.tutorial-btn:hover {
    background: #e8f5e8;
    border-color: #4caf50;
}

.pool-footer {
    padding: 15px 20px;
    background: #f8f9ff;
    border-top: 1px solid #e3e8ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pool-stats {
    display: flex;
    gap: 20px;
}

.pool-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4834d4;
}

.stat-label {
    font-size: 0.8rem;
    color: #b8c5d1;
}

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

/* Mission Detail Tooltip */
.mission-tooltip {
    position: absolute;
    background: white;
    border: 2px solid #4834d4;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 300px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.mission-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.tooltip-title {
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
}

.tooltip-type {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: white;
    margin-left: 10px;
}

.tooltip-type.bestzeit {
    background: #e74c3c;
}

.tooltip-type.highscore {
    background: #27ae60;
}

.tooltip-description {
    color: #b8c5d1;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.tooltip-requirements,
.tooltip-targets {
    margin-bottom: 8px;
}

.tooltip-section-title {
    font-size: 0.8rem;
    font-weight: bold;
    color: #b8c5d1;
    margin-bottom: 4px;
}

.tooltip-list {
    font-size: 0.8rem;
    color: #b8c5d1;
    padding-left: 15px;
}

.tooltip-videos {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.tooltip-video-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    color: #b8c5d1;
    transition: all 0.3s ease;
}

.tooltip-video-link:hover {
    background: #4834d4;
    color: white;
}

/* Enhanced Search and Filter Styles */
.search-input {
    position: relative;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.1);
}

.pool-filters {
    max-height: 120px;
    overflow-y: auto;
}

.pool-filters::-webkit-scrollbar {
    width: 4px;
}

.pool-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pool-filters::-webkit-scrollbar-thumb {
    background: #4834d4;
    border-radius: 2px;
}

/* Accessibility Improvements */
.pool-mission-card:focus {
    outline: 3px solid #4834d4;
    outline-offset: 2px;
}

.pool-mission-card[aria-selected="true"] {
    border-color: #4834d4;
    background: #f8f9ff;
}

/* Loading States */
.pool-content.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pool-content.loading::after {
    content: "Laden...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .pool-mission-actions {
        position: static;
        opacity: 1;
        margin-top: 8px;
        justify-content: flex-end;
    }
    
    .pool-mission-drag-handle {
        position: static;
        text-align: center;
        margin-top: 8px;
        padding: 8px;
        background: #f0f0f0;
        border-radius: 4px;
    }
    
    .pool-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pool-stats {
        justify-content: center;
    }
    
    .mission-tooltip {
        max-width: 280px;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
    }
}/* Advan
ced Filter Styles */
.pool-filters-container {
    padding: 15px 20px;
    background: #f8f9ff;
    border-bottom: 1px solid #e3e8ff;
    max-height: 300px;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 15px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    padding: 4px 10px;
    border: 2px solid #e3e8ff;
    background: white;
    border-radius: 16px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #4834d4;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #4834d4;
    color: white;
    border-color: #4834d4;
}

.quick-filter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.quick-filter:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: transparent;
}

.quick-filter.active {
    background: linear-gradient(135deg, #4834d4 0%, #6c5ce7 100%);
}

/* Active Filters Display */
.active-filters {
    padding: 10px 20px;
    background: #fff3cd;
    border-bottom: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.active-filters-title {
    font-size: 0.8rem;
    font-weight: bold;
    color: #856404;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

.active-filter-tag {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    color: #856404;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.active-filter-tag .remove-filter {
    cursor: pointer;
    font-weight: bold;
    color: #d63031;
}

.active-filter-tag .remove-filter:hover {
    color: #e17055;
}

.clear-filters-btn {
    background: #e17055;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.clear-filters-btn:hover {
    background: #d63031;
}

/* Enhanced Search Styles */
.pool-search {
    position: relative;
}

.search-input {
    padding-right: 40px;
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #b8c5d1;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-input:not(:placeholder-shown) + .search-clear {
    opacity: 1;
}

.search-clear:hover {
    color: #e74c3c;
}

/* Filter Animation */
.pool-mission-card {
    transition: all 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
}

.pool-mission-card.filtering-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.pool-mission-card.filtering-in {
    opacity: 1;
    transform: scale(1);
}

/* Filter Collapse/Expand */
.filter-section.collapsed .filter-buttons {
    display: none;
}

.filter-section-title {
    cursor: pointer;
    user-select: none;
}

.filter-section-title::after {
    content: '▼';
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.filter-section.collapsed .filter-section-title::after {
    transform: rotate(-90deg);
}

/* Filter Statistics */
.filter-stats {
    padding: 10px 20px;
    background: #e8f4fd;
    border-bottom: 1px solid #bee5eb;
    font-size: 0.8rem;
    color: #0c5460;
    text-align: center;
}

/* Responsive Filter Design */
@media (max-width: 768px) {
    .pool-filters-container {
        max-height: 250px;
        padding: 10px 15px;
    }
    
    .filter-section {
        margin-bottom: 12px;
    }
    
    .filter-section-title {
        font-size: 0.85rem;
    }
    
    .filter-btn {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .active-filters {
        padding: 8px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .active-filters-title {
        font-size: 0.75rem;
    }
}

/* Filter Loading State */
.pool-content.filtering {
    opacity: 0.7;
    pointer-events: none;
}

.pool-content.filtering::after {
    content: "Filtern...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    color: #b8c5d1;
}

/* No Results State */
.no-results {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: #b8c5d1;
}

.no-results.visible {
    display: block;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-results-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.no-results-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.no-results-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}/* E
nhanced Drag & Drop Styles */
.pool-mission-card.dragging {
    opacity: 0.3;
    transform: rotate(-3deg) scale(0.95);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.pool-mission-card.drag-dimmed {
    opacity: 0.4;
    filter: grayscale(50%);
    pointer-events: none;
}

.workspace-content.drag-active {
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e8 100%);
    border: 3px dashed #27ae60;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: #27ae60; }
    50% { border-color: #2ecc71; }
}

.workspace-content.drag-over {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border-color: #28a745;
    transform: scale(1.02);
}

.workspace-content.drag-invalid {
    background: linear-gradient(135deg, #ffe8e8 0%, #f8d7da 100%);
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

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

/* Custom Drag Image */
.custom-drag-image {
    pointer-events: none;
}

.drag-image-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drag-image-title {
    font-weight: bold;
    flex: 1;
}

.drag-image-category {
    font-size: 0.8rem;
    color: #b8c5d1;
}

.drag-image-type {
    padding: 2px 6px;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
}

.drag-image-type.bestzeit {
    background: #e74c3c;
}

.drag-image-type.highscore {
    background: #27ae60;
}

/* Drop Hints */
.drop-hint {
    pointer-events: none;
    z-index: 100;
}

.initial-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #27ae60;
    font-weight: bold;
    animation: bounce 2s infinite;
}

.hint-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.hint-text {
    font-size: 1.1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, -50%) translateY(0); }
    40% { transform: translate(-50%, -50%) translateY(-10px); }
    60% { transform: translate(-50%, -50%) translateY(-5px); }
}

.insertion-hint {
    height: 4px;
    margin: 5px 0;
    opacity: 0;
    animation: fadeInOut 2s infinite;
}

.insertion-line {
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, #27ae60 50%, transparent 100%);
    border-radius: 2px;
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.8; }
}

@keyframes slideIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Enhanced Drag Preview */
.drag-preview {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #4834d4;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    transform: rotate(3deg) scale(1.05);
    transition: all 0.2s ease;
}

.drag-preview.fade-out {
    opacity: 0;
    transform: rotate(3deg) scale(0.9);
}

/* Drag Handle Enhancement */
.pool-mission-drag-handle {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 4px;
    padding: 4px;
    transition: all 0.3s ease;
}

.pool-mission-card:hover .pool-mission-drag-handle {
    background: linear-gradient(135deg, #4834d4 0%, #6c5ce7 100%);
    color: white;
    transform: scale(1.1);
}

/* Touch Drag Indicators */
.pool-mission-card.touch-dragging {
    transform: scale(1.05) rotate(2deg);
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.touch-drag-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #4834d4;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    animation: pulse 1s infinite;
}

/* Drag Performance Optimizations */
.pool-mission-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.workspace-content {
    will-change: background, border-color, transform;
}

/* Accessibility Enhancements */
.pool-mission-card:focus {
    outline: 3px solid #4834d4;
    outline-offset: 2px;
}

.pool-mission-card[aria-grabbed="true"] {
    border-color: #4834d4;
    background: #f8f9ff;
}

.workspace-content[aria-dropeffect="move"] {
    border-style: dashed;
    border-width: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .pool-mission-card.dragging {
        border: 3px solid #000;
        background: #fff;
    }
    
    .workspace-content.drag-over {
        border: 3px solid #000;
        background: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .pool-mission-card,
    .workspace-content,
    .drag-preview,
    .drop-hint {
        animation: none;
        transition: none;
    }
    
    .pool-mission-card.dragging {
        transform: none;
        opacity: 0.7;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .custom-drag-image {
        background: #2c3e50;
        color: white;
        border-color: #6c5ce7;
    }
    
    .drag-preview {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-color: #6c5ce7;
    }
    
    .workspace-content.drag-active {
        background: linear-gradient(135deg, #1e3a2e 0%, #2d5a3d 100%);
    }
}
* Enhanced Drop Zone Styles */
.workspace-content {
    position: relative;
    transition: all 0.3s ease;
}

.workspace-content.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(39, 174, 96, 0.1) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(39, 174, 96, 0.1) 50%, 
        rgba(39, 174, 96, 0.1) 75%, 
        transparent 75%);
    background-size: 20px 20px;
    animation: moveStripes 1s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.workspace-content.drag-invalid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(231, 76, 60, 0.1) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(231, 76, 60, 0.1) 50%, 
        rgba(231, 76, 60, 0.1) 75%, 
        transparent 75%);
    background-size: 20px 20px;
    animation: moveStripes 1s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Drop Feedback */
.drop-feedback {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    animation: slideDown 0.3s ease-out;
}

.drop-feedback.success {
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

.drop-feedback.error {
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

.drop-feedback.info {
    border-left: 4px solid #3498db;
    color: #3498db;
}

.drop-feedback.fade-out {
    animation: slideUp 0.2s ease-in forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

.feedback-icon {
    font-weight: bold;
    font-size: 1.1rem;
}

.feedback-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Insertion Line */
.insertion-line {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #4834d4 50%, transparent 100%);
    border-radius: 2px;
    margin: 8px 0;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.insertion-line.active {
    opacity: 1;
    transform: scaleX(1);
    animation: pulse 1s infinite;
}

/* Workspace Mission Highlighting */
.workspace-mission.newly-added {
    animation: highlightNew 2s ease-out;
}

@keyframes highlightNew {
    0% {
        background: #e8f5e8;
        border-color: #27ae60;
        transform: scale(1.02);
    }
    100% {
        background: white;
        border-color: #e3e8ff;
        transform: scale(1);
    }
}

/* Smart Drop Zones */
.workspace-content.empty-state {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workspace-content.has-missions {
    min-height: auto;
}

/* Drop Zone Indicators */
.drop-zone-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.workspace-content.drag-over .drop-zone-indicator {
    opacity: 1;
}

.drop-zone-indicator.success {
    color: #27ae60;
    font-size: 3rem;
    animation: bounce 1s infinite;
}

.drop-zone-indicator.error {
    color: #e74c3c;
    font-size: 3rem;
    animation: shake 0.5s infinite;
}

/* Workspace Grid Lines */
.workspace-content.drag-over::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(72, 52, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(72, 52, 212, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Enhanced Empty State */
.workspace-empty.drag-target {
    border: 2px dashed #27ae60;
    background: rgba(39, 174, 96, 0.05);
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Accessibility Enhancements */
.workspace-content[aria-dropeffect="move"] {
    outline: 2px dashed #4834d4;
    outline-offset: 4px;
}

.workspace-content[aria-dropeffect="none"] {
    outline: 2px dashed #e74c3c;
    outline-offset: 4px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .workspace-content.drag-over {
        border: 3px solid #000;
        background: #fff;
    }
    
    .workspace-content.drag-invalid {
        border: 3px solid #000;
        background: #fff;
    }
    
    .drop-feedback {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .workspace-content::before,
    .workspace-content::after,
    .drop-feedback,
    .insertion-line,
    .workspace-mission.newly-added {
        animation: none;
    }
    
    .workspace-content.drag-over {
        background: rgba(39, 174, 96, 0.2);
    }
    
    .workspace-content.drag-invalid {
        background: rgba(231, 76, 60, 0.2);
    }
}
* Enhanced Workspace Mission Styles */
.workspace-mission {
    background: white;
    border: 2px solid #e3e8ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.workspace-mission:hover {
    border-color: #4834d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 52, 212, 0.15);
}

.workspace-mission:focus {
    outline: 3px solid #4834d4;
    outline-offset: 2px;
}

.workspace-mission.expanded {
    border-color: #4834d4;
    box-shadow: 0 8px 25px rgba(72, 52, 212, 0.2);
}

.workspace-mission.removing {
    opacity: 0;
    transform: translateX(-100%) scale(0.8);
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.workspace-mission-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.workspace-mission-order {
    background: linear-gradient(135deg, #4834d4 0%, #6c5ce7 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 32px;
    text-align: center;
}

.workspace-mission-title {
    flex: 1;
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
    transition: color 0.3s ease;
}

.workspace-mission-title:hover {
    color: #4834d4;
}

.workspace-mission-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.workspace-mission:hover .workspace-mission-actions {
    opacity: 1;
}

.workspace-action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.workspace-action-btn:hover {
    background: white;
    border-color: #4834d4;
    transform: scale(1.1);
}

.workspace-mission-info {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}

.info-group {
    display: flex;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #b8c5d1;
}

.info-icon {
    font-size: 1rem;
}

.info-text {
    font-weight: 500;
}

.workspace-mission-media {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.media-indicator {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.media-indicator.gameplay {
    background: #fff3e0;
    color: #ff9800;
}

.media-indicator.tutorial {
    background: #e8f5e8;
    color: #4caf50;
}

.media-indicator:hover {
    transform: scale(1.1);
}

.workspace-mission-drag-handle {
    color: #ccc;
    font-size: 1.2rem;
    cursor: grab;
    transition: all 0.3s ease;
    opacity: 0;
    margin-right: 12px;
    flex-shrink: 0;
    user-select: none;
}

.workspace-mission:hover .workspace-mission-drag-handle {
    opacity: 1;
    color: #4834d4;
}

.workspace-mission-drag-handle:hover {
    transform: scale(1.2);
}

/* Mission Details Panel */
.workspace-mission-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e3e8ff;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.workspace-mission-details.expanded {
    max-height: 500px;
    padding-bottom: 15px;
}

.workspace-mission-details.collapsing {
    max-height: 0;
    padding-bottom: 0;
}

.details-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.1s;
}

.workspace-mission-details.expanded .details-content {
    opacity: 1;
    transform: translateY(0);
}

.details-description,
.details-requirements,
.details-targets {
    margin-bottom: 15px;
}

.details-description p {
    margin: 5px 0 0 0;
    color: #b8c5d1;
    line-height: 1.4;
}

.details-requirements ul {
    margin: 5px 0 0 20px;
    color: #b8c5d1;
}

.details-requirements li {
    margin-bottom: 3px;
}

.targets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.target-item {
    background: #f8f9ff;
    border: 1px solid #e3e8ff;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.target-label {
    font-size: 0.8rem;
    color: #b8c5d1;
}

.target-value {
    font-weight: bold;
    color: #4834d4;
}

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

.detail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.detail-action-btn.gameplay {
    background: #fff3e0;
    color: #ff9800;
    border: 1px solid #ffcc80;
}

.detail-action-btn.tutorial {
    background: #e8f5e8;
    color: #4caf50;
    border: 1px solid #a5d6a7;
}

.detail-action-btn.info {
    background: #e3f2fd;
    color: #2196f3;
    border: 1px solid #90caf9;
}

.detail-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mission Stats Modal */
.mission-stats-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mission-stats-modal.visible {
    opacity: 1;
}

.stats-modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.mission-stats-modal.visible .stats-modal-content {
    transform: scale(1);
}

.stats-header {
    background: linear-gradient(135deg, #4834d4 0%, #6c5ce7 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-stats {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.close-stats:hover {
    background: rgba(255,255,255,0.2);
}

.stats-body {
    padding: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.stat-label {
    font-weight: 500;
    color: #b8c5d1;
}

.stat-value {
    font-weight: bold;
    color: #2c3e50;
}

.stats-actions {
    padding: 20px;
    background: #f8f9ff;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Workspace */
@media (max-width: 768px) {
    .workspace-mission {
        padding: 12px;
    }
    
    .workspace-mission-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-group {
        justify-content: space-between;
    }
    
    .workspace-mission-actions {
        opacity: 1;
    }
    
    .workspace-mission-drag-handle {
        opacity: 1;
        position: static;
        text-align: center;
        margin-top: 8px;
        padding: 8px;
        background: #f0f0f0;
        border-radius: 4px;
    }
    
    .targets-grid {
        grid-template-columns: 1fr;
    }
    
    .details-actions {
        flex-direction: column;
    }
    
    .stats-modal-content {
        width: 95%;
        margin: 20px;
    }
}/*
 Workspace Sortable Drag & Drop Styles */
.workspace-mission.workspace-dragging {
    opacity: 0.3;
    transform: rotate(2deg) scale(0.95);
    z-index: 1000;
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.workspace-mission.workspace-drop-target {
    border-color: #4834d4;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3e8ff 100%);
    transform: scale(1.02);
}

.workspace-mission.recently-moved {
    animation: highlightMove 1.5s ease-out;
}

@keyframes highlightMove {
    0% {
        background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
        border-color: #28a745;
        transform: scale(1.05);
    }
    100% {
        background: white;
        border-color: #e3e8ff;
        transform: scale(1);
    }
}

/* Workspace Drag Preview */
.workspace-drag-preview {
    position: fixed;
    pointer-events: none;
    z-index: 1001;
    background: white;
    border: 2px solid #4834d4;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transform: rotate(3deg);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.workspace-drag-preview.fade-out {
    opacity: 0;
    transform: rotate(3deg) scale(0.9);
}

.workspace-preview-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.preview-order {
    background: #4834d4;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.preview-title {
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
}

.preview-category {
    font-size: 0.8rem;
    color: #b8c5d1;
}

/* Drop Zones and Indicators */
.workspace-drop-zone {
    height: 4px;
    margin: 6px 0;
    background: transparent;
    border-radius: 2px;
    transition: all 0.3s ease;
    opacity: 0;
}

.workspace-drop-zone:hover,
.workspace-drop-zone.active {
    background: linear-gradient(90deg, transparent 0%, #4834d4 50%, transparent 100%);
    opacity: 1;
    height: 6px;
    margin: 8px 0;
}

.workspace-drop-indicator {
    height: 4px;
    margin: 8px 0;
    animation: slideIn 0.2s ease-out;
}

.drop-indicator-line {
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, #27ae60 20%, #27ae60 80%, transparent 100%);
    border-radius: 2px;
    animation: pulse 1s infinite;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Enhanced Drag Handle */
.workspace-mission-drag-handle {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 6px;
    padding: 6px;
    transition: all 0.3s ease;
    cursor: grab;
}

.workspace-mission-drag-handle:active {
    cursor: grabbing;
}

.workspace-mission:hover .workspace-mission-drag-handle {
    background: linear-gradient(135deg, #4834d4 0%, #6c5ce7 100%);
    color: white;
    transform: scale(1.1);
}

.workspace-mission.workspace-dragging .workspace-mission-drag-handle {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

/* Reorder Hints */
.workspace-missions.reordering {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3e8ff 100%);
    border-radius: 8px;
    padding: 10px;
}

.workspace-missions.reordering .workspace-mission:not(.workspace-dragging) {
    border-style: dashed;
    border-color: #4834d4;
    opacity: 0.7;
}

/* Sortable Instructions */
.sortable-instructions {
    background: #e3f2fd;
    border: 1px solid #2196F3;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #1976d2;
    font-weight: 600;
    display: none;
    position: relative;
    z-index: 5;
}

.sortable-instructions.visible {
    display: block;
}

.workspace-content.has-missions .sortable-instructions {
    display: block;
}

/* Touch Sortable Support */
.workspace-mission.touch-sorting {
    transform: scale(1.05) rotate(1deg);
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.touch-sort-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    animation: pulse 1s infinite;
}

/* Accessibility Enhancements */
.workspace-mission[aria-grabbed="true"] {
    border-color: #4834d4;
    background: #f8f9ff;
}

.workspace-mission[aria-dropeffect="move"] {
    border-style: dashed;
    border-width: 2px;
}

.workspace-drop-zone[aria-label] {
    min-height: 20px;
    border: 2px dashed transparent;
    transition: border-color 0.3s ease;
}

.workspace-drop-zone[aria-label]:focus {
    border-color: #4834d4;
    outline: none;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .workspace-mission.workspace-dragging {
        border: 3px solid #000;
        background: #fff;
    }
    
    .workspace-drop-indicator {
        background: #000;
    }
    
    .workspace-drag-preview {
        border: 3px solid #000;
        background: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .workspace-mission.workspace-dragging {
        transform: none;
        opacity: 0.7;
    }
    
    .workspace-drag-preview {
        transform: none;
    }
    
    .workspace-mission.recently-moved {
        animation: none;
        background: #e8f5e8;
        border-color: #28a745;
    }
    
    .drop-indicator-line {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .workspace-drag-preview {
        background: #2c3e50;
        color: white;
        border-color: #6c5ce7;
    }
    
    .workspace-mission.workspace-drop-target {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    }
}/* Ce
ntral Drag & Drop Controller Styles */
body.dragging-active {
    cursor: grabbing;
    user-select: none;
}

body.dragging-active * {
    pointer-events: none;
}

body.dragging-active .drag-preview,
body.dragging-active .workspace-content,
body.dragging-active .pool-mission-card {
    pointer-events: auto;
}

/* Enhanced Drag Preview */
.drag-preview {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    background: white;
    border: 2px solid #4834d4;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    transform: rotate(3deg) scale(1.05);
    opacity: 0.95;
    transition: all 0.2s ease;
    max-width: 280px;
}

.drag-preview.fade-out {
    opacity: 0;
    transform: rotate(3deg) scale(0.9);
}

.drag-preview.pool-to-workspace {
    border-color: #27ae60;
}

.drag-preview.workspace-reorder {
    border-color: #f39c12;
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.preview-order {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

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

.preview-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-meta {
    font-size: 0.8rem;
    color: #b8c5d1;
    margin-top: 2px;
}

/* Drop Indicators */
.drop-indicator {
    height: 4px;
    margin: 8px 0;
    animation: slideIn 0.2s ease-out;
    pointer-events: none;
}

.drop-indicator.workspace-insert .indicator-line {
    background: linear-gradient(90deg, transparent 0%, #27ae60 20%, #27ae60 80%, transparent 100%);
    height: 100%;
    border-radius: 2px;
    animation: pulse 1s infinite;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
}

.drop-indicator.workspace-reorder .indicator-line {
    background: linear-gradient(90deg, transparent 0%, #f39c12 20%, #f39c12 80%, transparent 100%);
    height: 100%;
    border-radius: 2px;
    animation: pulse 1s infinite;
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.5);
}

/* Drag Target States */
.workspace-content.drag-target {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 3px dashed #27ae60;
    animation: breathe 2s ease-in-out infinite;
}

.workspace-content.drag-target::before {
    content: '⬇️ Mission hier ablegen';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
    animation: bounce 2s infinite;
}

/* Global Drag States */
.pool-mission-card.dragging {
    opacity: 0.3;
    transform: rotate(-3deg) scale(0.95);
    z-index: 999;
}

.workspace-mission.workspace-dragging {
    opacity: 0.3;
    transform: rotate(2deg) scale(0.95);
    z-index: 999;
}

/* Drag Feedback for Other Elements */
body.dragging-active .pool-mission-card:not(.dragging) {
    opacity: 0.6;
    filter: grayscale(30%);
}

body.dragging-active .workspace-mission:not(.workspace-dragging) {
    opacity: 0.7;
}

/* Touch Drag Enhancements */
.drag-preview.touch-drag {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Accessibility Enhancements */
.drag-preview[aria-label] {
    outline: 2px solid #4834d4;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .drag-preview {
        border: 3px solid #000;
        background: #fff;
        color: #000;
    }
    
    .drop-indicator .indicator-line {
        background: #000;
        box-shadow: none;
    }
    
    .workspace-content.drag-target {
        border: 3px solid #000;
        background: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .drag-preview {
        transform: none;
        animation: none;
    }
    
    .drop-indicator {
        animation: none;
    }
    
    .drop-indicator .indicator-line {
        animation: none;
    }
    
    .workspace-content.drag-target {
        animation: none;
    }
    
    .workspace-content.drag-target::before {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .drag-preview {
        background: #2c3e50;
        color: white;
        border-color: #6c5ce7;
    }
    
    .preview-title {
        color: white;
    }
    
    .preview-meta {
        color: #bdc3c7;
    }
}/* 
Enhanced Visual Feedback System */

/* Drag Cursor */
.drag-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 1002;
    font-size: 1.5rem;
    animation: bounce 1s infinite;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* Drag Instructions */
.drag-instructions {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(72, 52, 212, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.drag-instructions.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.drag-instructions.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

.instruction-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.instruction-icon {
    font-size: 1.5rem;
}

.instruction-text {
    font-weight: bold;
    font-size: 1rem;
}

.instruction-hint {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: auto;
}

/* Workspace Capacity Indicator */
.workspace-capacity {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
}

.capacity-bar {
    height: 6px;
    background: #e3e8ff;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60 0%, #f39c12 70%, #e74c3c 90%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.capacity-text {
    font-size: 0.8rem;
    color: #b8c5d1;
    text-align: center;
    font-weight: 500;
}

/* Enhanced Drop Zone States */
.workspace-content.highlight-drop-zone {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 3px solid #27ae60;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.3);
}

.workspace-content.pulse-drop-zone {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(39, 174, 96, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(39, 174, 96, 0.6);
    }
}

.workspace-content.drag-valid {
    border-color: #27ae60;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

.workspace-content.drag-invalid {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #ffe8e8 0%, #f8d7da 100%);
    animation: shake 0.5s ease-in-out;
}

/* Mission Pool Dimming */
.mission-pool-panel.drag-source-dimmed {
    opacity: 0.6;
    filter: grayscale(30%);
}

.mission-pool-panel.drag-source-dimmed .pool-mission-card:not(.dragging) {
    opacity: 0.5;
    transform: scale(0.98);
}

/* Reorder Mode */
.workspace-missions.reorder-mode {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 12px;
    padding: 15px;
    border: 2px dashed #f39c12;
}

.workspace-mission.reorder-target {
    border: 2px dashed #f39c12;
    background: rgba(243, 156, 18, 0.1);
    transform: scale(0.98);
}

.workspace-mission.reorder-valid {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.workspace-mission.reorder-invalid {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    animation: shake 0.3s ease-in-out;
}

/* Reorder Grid */
.workspace-missions.show-grid {
    background-image: 
        linear-gradient(rgba(243, 156, 18, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 156, 18, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Position Indicators */
.position-indicator {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #f39c12;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: pulse 1s infinite;
}

/* Drag Validation Messages */
.drag-validation-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
}

.drag-validation-message.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.drag-validation-message.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

.drag-validation-message.success {
    background: #27ae60;
    color: white;
}

.drag-validation-message.error {
    background: #e74c3c;
    color: white;
}

.drag-validation-message.info {
    background: #3498db;
    color: white;
}

.validation-icon {
    font-size: 1.2rem;
}

.validation-text {
    font-size: 0.9rem;
}

/* Enhanced Drag Preview States */
.drag-preview.drag-valid {
    border-color: #27ae60;
    box-shadow: 0 12px 35px rgba(39, 174, 96, 0.3);
}

.drag-preview.drag-invalid {
    border-color: #e74c3c;
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.3);
    animation: shake 0.3s ease-in-out;
}

/* Haptic Feedback Simulation */
.drag-preview.haptic-feedback {
    animation: hapticPulse 0.1s ease-out;
}

@keyframes hapticPulse {
    0% { transform: scale(1.05) rotate(3deg); }
    50% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1.05) rotate(3deg); }
}

/* Enhanced Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .drag-cursor,
    .workspace-content.pulse-drop-zone,
    .position-indicator,
    .drag-preview.haptic-feedback {
        animation: none;
    }
    
    .workspace-content.drag-invalid {
        animation: none;
        border-color: #e74c3c;
    }
    
    .workspace-mission.reorder-invalid {
        animation: none;
        border-color: #e74c3c;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .drag-instructions {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .workspace-capacity {
        background: #fff;
        border: 2px solid #000;
    }
    
    .drag-validation-message {
        border: 2px solid #000;
    }
    
    .drag-validation-message.success {
        background: #000;
        color: #fff;
    }
    
    .drag-validation-message.error {
        background: #000;
        color: #fff;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .drag-instructions {
        background: rgba(108, 92, 231, 0.95);
    }
    
    .workspace-capacity {
        background: rgba(44, 62, 80, 0.95);
        color: white;
    }
    
    .capacity-text {
        color: #bdc3c7;
    }
    
    .workspace-missions.reorder-mode {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    }
}/* 
Drag Error Handling and Cancellation Styles */

/* Drag Cancellation */
.drag-preview.cancelled {
    border-color: #e74c3c;
    background: #ffe8e8;
    animation: cancelPulse 0.5s ease-out;
}

@keyframes cancelPulse {
    0% { transform: rotate(3deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(0.9); }
    100% { transform: rotate(0deg) scale(0.8); opacity: 0; }
}

.pool-mission-card.drag-cancelled,
.workspace-mission.drag-cancelled {
    animation: flashCancel 0.5s ease-out;
}

@keyframes flashCancel {
    0%, 100% { background: white; }
    25%, 75% { background: #ffe8e8; }
    50% { background: #ffcccb; }
}

/* Success/Failure Feedback */
.drag-preview.success {
    border-color: #27ae60;
    background: #e8f5e8;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: rotate(3deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1.2); }
    100% { transform: rotate(0deg) scale(0); opacity: 0; }
}

.drag-preview.failed {
    border-color: #e74c3c;
    background: #ffe8e8;
    animation: failurePulse 0.6s ease-out;
}

@keyframes failurePulse {
    0% { transform: rotate(3deg) scale(1.05); }
    25% { transform: rotate(-2deg) scale(1.1); }
    50% { transform: rotate(2deg) scale(1.1); }
    75% { transform: rotate(-1deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(0); opacity: 0; }
}

/* Error State Indicators */
.workspace-content.error-state {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #ffe8e8 0%, #f8d7da 100%);
    animation: errorPulse 1s ease-in-out 3;
}

@keyframes errorPulse {
    0%, 100% { 
        border-color: #e74c3c;
        box-shadow: 0 0 0 rgba(231, 76, 60, 0.4);
    }
    50% { 
        border-color: #c0392b;
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.6);
    }
}

.pool-mission-card.error-state {
    border-color: #e74c3c;
    background: #ffe8e8;
    animation: cardErrorShake 0.5s ease-in-out;
}

@keyframes cardErrorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Timeout Warning */
.drag-timeout-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(243, 156, 18, 0.95);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 1003;
    text-align: center;
    animation: slideInScale 0.3s ease-out;
}

@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.timeout-warning-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeout-warning-message {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeout-warning-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.timeout-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.timeout-btn.continue {
    background: #27ae60;
    color: white;
}

.timeout-btn.cancel {
    background: #e74c3c;
    color: white;
}

.timeout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Emergency Cleanup Indicator */
.emergency-cleanup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(231, 76, 60, 0.1);
    z-index: 999;
    animation: emergencyFlash 0.3s ease-out;
}

@keyframes emergencyFlash {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Connection Error States */
.drag-connection-error {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1001;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Drag State Recovery */
.drag-state-recovery {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(52, 73, 94, 0.95);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    z-index: 1004;
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.recovery-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Accessibility Error States */
.drag-error-announcement {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* High Contrast Error States */
@media (prefers-contrast: high) {
    .drag-preview.cancelled,
    .drag-preview.failed {
        border: 3px solid #000;
        background: #fff;
    }
    
    .workspace-content.error-state {
        border: 3px solid #000;
        background: #fff;
    }
    
    .drag-timeout-warning {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }
}

/* Reduced Motion Error States */
@media (prefers-reduced-motion: reduce) {
    .drag-preview.cancelled,
    .drag-preview.success,
    .drag-preview.failed,
    .pool-mission-card.drag-cancelled,
    .workspace-content.error-state,
    .pool-mission-card.error-state {
        animation: none;
    }
    
    .drag-preview.cancelled {
        opacity: 0.5;
        border-color: #e74c3c;
    }
    
    .drag-preview.success {
        opacity: 0.8;
        border-color: #27ae60;
    }
    
    .drag-preview.failed {
        opacity: 0.5;
        border-color: #e74c3c;
    }
}/* Enhanc
ed Visual Feedback System */
@keyframes dragTargetPulse {
    0%, 100% { 
        border-color: #27ae60;
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    50% { 
        border-color: #2ecc71;
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
}

/* Drag Hints */
.drag-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
}

.drag-hint.empty-workspace {
    animation: bounceIn 0.5s ease-out;
}

.hint-content {
    text-align: center;
    background: rgba(39, 174, 96, 0.95);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hint-icon.animated-drop {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: dropBounce 2s infinite;
}

.hint-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.hint-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes dropBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes bounceIn {
    0% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Insertion Points */
.insertion-point {
    height: 6px;
    margin: 8px 0;
    position: relative;
    opacity: 0;
    animation: fadeInScale 0.3s ease-out forwards;
}

.insertion-point .insertion-line {
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, #27ae60 20%, #27ae60 80%, transparent 100%);
    border-radius: 3px;
    animation: glowPulse 2s infinite;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

.insertion-point.end-point .insertion-line {
    background: linear-gradient(90deg, transparent 0%, #3498db 20%, #3498db 80%, transparent 100%);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
    }
    50% { 
        box-shadow: 0 0 20px rgba(39, 174, 96, 0.8);
    }
}

/* Reorder Mode */
.workspace-missions.reorder-mode {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 8px;
    padding: 10px;
    animation: reorderModeActivate 0.3s ease-out;
}

.workspace-mission.reorder-target {
    border-style: dashed;
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    animation: reorderTargetPulse 2s infinite;
}

@keyframes reorderModeActivate {
    0% {
        background: transparent;
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
        transform: scale(1);
    }
}

@keyframes reorderTargetPulse {
    0%, 100% { 
        border-color: #f39c12;
        background: rgba(243, 156, 18, 0.1);
    }
    50% { 
        border-color: #e67e22;
        background: rgba(243, 156, 18, 0.2);
    }
}

/* Reorder Instructions */
.reorder-instruction {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(243, 156, 18, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    animation: slideInRight 0.3s ease-out;
    z-index: 50;
}

.instruction-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.instruction-icon {
    font-size: 1rem;
}

.instruction-text {
    font-weight: 500;
}

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

/* Global Drag Instructions */
.global-drag-instructions {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(72, 52, 212, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 1001;
    animation: slideInDown 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.instructions-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.instruction-item kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: monospace;
}

.drag-icon {
    font-size: 1rem;
    opacity: 0.9;
}

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

/* Dimmed Elements */
.pool-mission-card.dimmed,
.pool-filters-container.dimmed {
    opacity: 0.4;
    filter: grayscale(50%);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Enhanced Drag States */
body.dragging-active {
    cursor: grabbing !important;
}

body.dragging-active * {
    cursor: grabbing !important;
}

body.dragging-active .workspace-content.drag-target {
    cursor: copy !important;
}

/* Success Feedback */
.drag-success-flash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(39, 174, 96, 0.1);
    pointer-events: none;
    z-index: 999;
    animation: successFlash 0.5s ease-out;
}

@keyframes successFlash {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Error Feedback */
.drag-error-shake {
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Mobile Touch Feedback */
@media (max-width: 768px) {
    .drag-hint.empty-workspace .hint-content {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .hint-icon.animated-drop {
        font-size: 2.5rem;
    }
    
    .global-drag-instructions {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 10px 12px;
    }
    
    .instructions-content {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .instruction-item {
        font-size: 0.8rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .drag-hint .hint-content {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .insertion-point .insertion-line {
        background: #000;
        box-shadow: none;
    }
    
    .global-drag-instructions {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .drag-hint.empty-workspace,
    .insertion-point,
    .reorder-instruction,
    .global-drag-instructions {
        animation: none;
    }
    
    .hint-icon.animated-drop {
        animation: none;
    }
    
    .insertion-point .insertion-line,
    .workspace-mission.reorder-target {
        animation: none;
    }
    
    .workspace-missions.reorder-mode {
        animation: none;
        background: #fff3cd;
    }
}
* Drag Error Handling Styles */
.drag-cancelled {
    border: 3px solid #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
    animation: cancelPulse 0.5s ease-out;
}

@keyframes cancelPulse {
    0% {
        border-color: #e74c3c;
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        border-color: #c0392b;
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        border-color: #e74c3c;
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Drag Timeout Warning */
.drag-timeout-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(243, 156, 18, 0.95);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    z-index: 1002;
    animation: warningPulse 1s infinite;
    backdrop-filter: blur(10px);
}

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

.warning-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.warning-message {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.warning-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.warning-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.warning-btn.continue {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.warning-btn.cancel {
    background: #e74c3c;
    color: white;
}

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

@keyframes warningPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 15px rgba(243, 156, 18, 0);
    }
}

/* Invalid Drop Zones */
.invalid-drop-zone {
    border: 2px dashed #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
    animation: invalidZonePulse 1s infinite;
}

@keyframes invalidZonePulse {
    0%, 100% { 
        border-color: #e74c3c;
        background: rgba(231, 76, 60, 0.1);
    }
    50% { 
        border-color: #c0392b;
        background: rgba(231, 76, 60, 0.2);
    }
}

/* Drag Conflict Indicators */
.drag-conflict {
    position: relative;
}

.drag-conflict::after {
    content: '⚠️';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    animation: conflictBlink 1s infinite;
}

@keyframes conflictBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Emergency Cleanup Indicator */
.emergency-cleanup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 1003;
    animation: emergencyAlert 0.5s ease-out;
}

@keyframes emergencyAlert {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Drag Performance Warning */
.performance-warning {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(243, 156, 18, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 1001;
    animation: slideInUp 0.3s ease-out;
}

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

/* Accessibility Error States */
.drag-error-announce {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* High Contrast Error States */
@media (prefers-contrast: high) {
    .drag-cancelled {
        border: 3px solid #000 !important;
        background: #fff !important;
    }
    
    .invalid-drop-zone {
        border: 3px solid #000 !important;
        background: #fff !important;
    }
    
    .drag-timeout-warning {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #fff;
    }
}

/* Reduced Motion Error States */
@media (prefers-reduced-motion: reduce) {
    .drag-cancelled,
    .invalid-drop-zone,
    .drag-conflict::after {
        animation: none;
    }
    
    .drag-timeout-warning {
        animation: none;
    }
    
    .drag-cancelled {
        border: 3px solid #e74c3c !important;
        background: rgba(231, 76, 60, 0.2) !important;
    }
    
    .invalid-drop-zone {
        border: 2px dashed #e74c3c !important;
        background: rgba(231, 76, 60, 0.2) !important;
    }
}/* Vali
dation Indicator Styles */
.stat-empty {
    color: #6c757d !important;
    opacity: 0.6;
}

.stat-valid {
    color: #28a745 !important;
    font-weight: bold;
}

.stat-warning {
    color: #ffc107 !important;
    font-weight: bold;
    animation: warningPulse 2s infinite;
}

.stat-limit {
    color: #fd7e14 !important;
    font-weight: bold;
    animation: limitPulse 1s infinite;
}

.stat-error {
    color: #dc3545 !important;
    font-weight: bold;
    animation: errorPulse 1s infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes limitPulse {
    0%, 100% { 
        color: #fd7e14;
        transform: scale(1);
    }
    50% { 
        color: #e67e22;
        transform: scale(1.05);
    }
}

@keyframes errorPulse {
    0%, 100% { 
        color: #dc3545;
        transform: scale(1);
    }
    50% { 
        color: #c82333;
        transform: scale(1.1);
    }
}

/* Submit Button States */
button[type="submit"]:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
}

button[type="submit"]:disabled:hover {
    background: #6c757d !important;
    transform: none !important;
}

/* Challenge Balance Indicator */
.balance-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e3e8ff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    z-index: 10;
}

.balance-indicator.excellent {
    border-color: #28a745;
    color: #28a745;
}

.balance-indicator.good {
    border-color: #17a2b8;
    color: #17a2b8;
}

.balance-indicator.fair {
    border-color: #ffc107;
    color: #856404;
}

.balance-indicator.poor {
    border-color: #dc3545;
    color: #dc3545;
}

.balance-score {
    font-weight: bold;
    margin-right: 5px;
}

/* Validation Warnings */
.validation-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.validation-warning.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.validation-warning.info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.warning-message {
    flex: 1;
    font-size: 0.9rem;
}

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

.warning-action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.warning-action-btn.primary {
    background: #007bff;
    color: white;
}

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

.warning-action-btn:hover {
    transform: translateY(-1px);
}

/* Compatibility Indicators */
.mission-compatibility {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 10;
}

.mission-compatibility.compatible {
    background: #28a745;
}

.mission-compatibility.warning {
    background: #ffc107;
    animation: warningBlink 2s infinite;
}

.mission-compatibility.incompatible {
    background: #dc3545;
    animation: errorBlink 1s infinite;
}

@keyframes warningBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes errorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.1; }
}

/* Responsive Validation */
@media (max-width: 768px) {
    .validation-warning {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .warning-actions {
        justify-content: center;
    }
    
    .balance-indicator {
        position: static;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Accessibility and Readability Improvements */

/* Enhanced Focus States for Better Accessibility */
*:focus {
  outline: 3px solid var(--accent-primary) !important;
  outline-offset: 2px;
}

.btn:focus {
  outline: 3px solid rgba(255, 107, 53, 0.5) !important;
  outline-offset: 2px;
}

/* Skip Links for Screen Readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: var(--text-white);
  padding: 8px 12px;
  border-radius: var(--border-radius);
  text-decoration: none;
  z-index: 1000;
  transition: top 0.3s;
  font-weight: bold;
}

.skip-link:focus {
  top: 6px;
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enhanced Typography for Better Readability */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.4;
  margin-bottom: var(--spacing-md);
  color: inherit;
  font-weight: 600;
}

.header h1 {
  color: var(--text-white);
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
  color: var(--text-primary);
}

p {
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  max-width: 70ch; /* Optimal reading width */
}

/* Better List Styling */
ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.5;
}

/* Code Styling */
code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: var(--accent-error);
  border: 1px solid var(--border-color);
}

pre {
  background: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--border-color);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000 !important;
    --text-secondary: #333333 !important;
    --bg-primary: #ffffff !important;
    --bg-card: #ffffff !important;
    --border-color: #000000 !important;
  }
  
  .btn {
    border: 3px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  .btn:hover {
    background: #000000 !important;
    color: #ffffff !important;
  }
  
  .card {
    border: 2px solid #000000 !important;
    background: #ffffff !important;
  }
  
  .mission-card {
    border: 2px solid #000000 !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .btn:hover,
  .card:hover,
  .mission-card:hover,
  .step:hover {
    transform: none !important;
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  p, li {
    orphans: 3;
    widows: 3;
  }
  
  .btn {
    border: 1px solid black !important;
    background: white !important;
    color: black !important;
    text-decoration: underline;
  }
  
  .card {
    border: 1px solid black !important;
    margin-bottom: 1cm;
    page-break-inside: avoid;
  }
  
  .header {
    text-align: center;
    margin-bottom: 1cm;
  }
  
  /* Hide non-essential elements when printing */
  .btn,
  nav,
  .floating-news,
  .theme-switcher {
    display: none !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-card: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-white: #ffffff;
    --border-color: #404040;
  }
  
  body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }
}

/* Large Text Support */
@media (min-resolution: 2dppx) {
  body {
    font-size: 1.1rem;
  }
  
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .form-input {
    min-height: 44px;
  }
}
