/* ========================================================================
   CUSTOM.CSS - Order Management System
   Vollständig strukturierte CSS-Datei für alle Seiten
   ======================================================================== */

/* ========== GLOBAL VARIABLES ========== */
:root {
  --md-bg:            #FAFAFA;   /* page background */
  --md-surface:       #FFFFFF;   /* cards, containers */
  --md-text:          #212121;   /* primary text */
  --md-label:         #757575;   /* secondary text / labels */
  --md-primary:       #2196F3;   /* primary actions/links */
  --md-primary-dark:  #1976D2;   /* hover/focus */
  --md-secondary:     #4CAF50;   /* success */
  --md-warning:       #FF5722;   /* warning */
  --md-error:         #F44336;   /* error */
  --md-border:        #E0E0E0;   /* borders, dividers */
}

/* ========== CENTRALIZED NAVIGATION ========== */
.app-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.nav-brand {
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-link:hover {
  color: white !important;
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.nav-logout {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.nav-logout:hover {
  background: rgba(255,255,255,0.2) !important;
}

.user-info {
  font-size: 14px;
  opacity: 0.9;
  color: white;
  margin-bottom: 16px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .app-header-nav {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  .nav-brand {
    font-size: 20px;
  }
}

/* ========== GLOBAL STYLES ========== */
body {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  color: var(--md-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
}

main.content-wrapper {
  margin: 2rem 10%;
}

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

/* Modern Cards */
.modern-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Form Components */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-weight: 600;
  color: var(--md-text);
  font-size: 14px;
}

.form-input {
  padding: 12px 16px;
  border: 2px solid var(--md-border);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-help {
  font-size: 12px;
  color: var(--md-label);
  margin-top: 4px;
}

/* Status Badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.shipped {
  background: #dcfce7;
  color: #166534;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.printready {
  background: #e0e7ff;
  color: #3730a3;
}

/* ========== ERWEITERTE STATUS BADGES FÜR QR-FEATURE ========== */

.status-badge.address_error {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.status-badge.address-error {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.status-badge.delivered {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.processing {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.unknown {
  background: #f3f4f6;
  color: #6b7280;
}

/* ========== QR-UPLOAD SPECIFIC STYLES ========== */
.qr-upload-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.qr-upload-header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 32px;
  color: white;
}

.qr-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-align: center;
}

.qr-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
  text-align: center;
}

.qr-upload-content {
  padding: 32px;
}

.upload-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 32px;
  border: 2px dashed #e2e8f0;
  text-align: center;
  margin-bottom: 32px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-section:hover,
.upload-section.dragover {
  border-color: #f59e0b;
  background: #fef3c7;
  transform: translateY(-2px);
}

.upload-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.upload-title {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
}

.upload-description {
  color: #6b7280;
  margin: 0 0 16px 0;
  font-size: 16px;
}

.upload-button {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.file-input {
  display: none;
}

.preview-section {
  display: none;
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.preview-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
}

.preview-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.processing-section {
  display: none;
  text-align: center;
  padding: 24px;
  background: #f0f9ff;
  border-radius: 12px;
  border: 1px solid #0ea5e9;
  margin-bottom: 24px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #0ea5e9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px auto;
}

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

.processing-text {
  color: #0c4a6e;
  font-weight: 600;
}

.result-section {
  display: none;
  background: #f0fdf4;
  border: 1px solid #22c55e;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.result-title {
  font-size: 18px;
  font-weight: 600;
  color: #166534;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-details {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

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

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

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

.detail-value {
  font-weight: 600;
  color: #1f2937;
}

.status-change {
  background: #fef3c7;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #f59e0b;
  margin-bottom: 16px;
  text-align: center;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.view-order-button {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.view-order-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  color: white;
}

.upload-another-button {
  background: #6b7280;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-another-button:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

.error-section {
  display: none;
  background: #fee2e2;
  border: 1px solid #ef4444;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.error-title {
  font-size: 18px;
  font-weight: 600;
  color: #991b1b;
  margin: 0 0 8px 0;
}

.error-message {
  color: #7f1d1d;
  margin: 0;
}

/* ========== BULK UPLOAD STYLES ========== */
.bulk-upload-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.bulk-results-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.bulk-summary {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  text-align: center;
}

.summary-item {
  padding: 12px;
}

.summary-number {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.summary-label {
  font-size: 14px;
  color: #6b7280;
}

.summary-item.total .summary-number {
  color: #3b82f6;
}

.summary-item.success .summary-number {
  color: #10b981;
}

.summary-item.failed .summary-number {
  color: #ef4444;
}

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

.result-item {
  background: white;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #e5e7eb;
  transition: all 0.2s ease;
}

.result-item.success {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.result-item.error {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.result-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.result-filename {
  font-weight: 600;
  color: #374151;
}

.result-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.result-status.success {
  background: #dcfce7;
  color: #166534;
}

.result-status.error {
  background: #fee2e2;
  color: #991b1b;
}

.result-details {
  font-size: 14px;
  color: #6b7280;
}

.result-order-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.result-order-link:hover {
  color: #1d4ed8;
}

/* ========== ORDER HISTORY STYLES ========== */
.order-history-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.history-timeline {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #e5e7eb;
  position: relative;
}

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

.timeline-item.qr_upload {
  border-left-color: #f59e0b;
  background: #fef3c7;
}

.timeline-item.created {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.timeline-item.updated {
  border-left-color: #3b82f6;
  background: #f0f9ff;
}

.timeline-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-description {
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.timeline-timestamp {
  font-size: 12px;
  color: #6b7280;
}

/* ========== QR STATS STYLES ========== */
.qr-stats-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.3s ease;
}

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

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.chart-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.event-name {
  font-weight: 600;
  color: #374151;
}

.event-count {
  background: #fee2e2;
  color: #991b1b;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
}

/* ========== RESPONSIVE DESIGN FÜR QR-FEATURES ========== */
@media (max-width: 768px) {
  .qr-upload-content {
    padding: 16px;
  }
  
  .upload-section {
    padding: 24px 16px;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .view-order-button,
  .upload-another-button {
    width: 100%;
    text-align: center;
  }
  
  .bulk-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .timeline-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Modern Buttons */
.modern-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.modern-button:hover {
  transform: translateY(-2px);
}

.modern-button.primary {
  background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
  color: white;
}

.modern-button.success {
  background: linear-gradient(135deg, var(--md-secondary), #388e3c);
  color: white;
}

.modern-button.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.modern-button.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* ========== LOGIN PAGE ========== */
.login-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.login-header {
  text-align: center;
  margin-bottom: 48px;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.login-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.login-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.login-card-header {
  margin-bottom: 24px;
  text-align: center;
}

.login-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--md-text);
  margin: 0;
}

.admin-login .login-card-title {
  color: var(--md-primary);
}

.buyer-login .login-card-title {
  color: var(--md-secondary);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-submit-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.login-submit-button.admin {
  background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
  color: white;
}

.login-submit-button.buyer {
  background: linear-gradient(135deg, var(--md-secondary), #388e3c);
  color: white;
}

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

/* ========== ORDERS OVERVIEW ========== */
.orders-overview-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.overview-header {
  background: linear-gradient(135deg, #4f9cf9 0%, #3b82f6 100%);
  padding: 32px;
  color: white;
}

.overview-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px 0;
  text-align: center;
}

.filter-section {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
}

.filter-statistics {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.35);
  border-radius: 8px;
  color: white;
  font-size: 14px;
}
.filter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-weight: 500;
  color: white;
  font-size: 14px;
}

.filter-input {
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  color: var(--md-text);
}

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

.filter-button {
  background: white;
  color: var(--md-primary);
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-button:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.clear-filters-button {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.clear-filters-button:hover {
  background: rgba(255,255,255,0.3);
  color: white;
}

.orders-table-container {
  padding: 32px;
}

.no-orders-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--md-label);
}

.no-orders-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.no-orders-message h3 {
  color: var(--md-text);
  margin-bottom: 8px;
}

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

.order-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

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

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.order-id {
  font-size: 18px;
  font-weight: 700;
}

.order-link {
  color: var(--md-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.order-link:hover {
  color: var(--md-primary-dark);
}

.order-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

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

.order-event {
  font-weight: 600;
  color: var(--md-text);
  font-size: 16px;
}

.order-buyer {
  color: var(--md-label);
  font-size: 14px;
}

.order-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--md-label);
  margin-top: 8px;
}

.pagination-section {
  padding: 20px 32px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.pagination-button {
  background: var(--md-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination-button:hover {
  background: var(--md-primary-dark);
  transform: translateY(-1px);
  color: white;
}

.pagination-info {
  color: var(--md-label);
  font-weight: 500;
}

/* ========== ORDER DETAILS ========== */
.order-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow: hidden;
}

.order-header {
  background: linear-gradient(135deg, #4f9cf9 0%, #3b82f6 100%);
  padding: 24px 32px;
  color: white;
}

.order-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.order-logo {
  font-size: 24px;
  font-weight: 700;
}

.order-nav {
  display: flex;
  gap: 24px;
}

.order-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.order-nav a:hover {
  color: white;
  transform: translateY(-1px);
}

.order-user-info {
  font-size: 14px;
  opacity: 0.9;
}

.order-content {
  padding: 32px;
}

.order-title-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.order-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.detail-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

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

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: linear-gradient(135deg, #4f9cf9, #3b82f6);
  border-radius: 2px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 500;
  color: #6b7280;
  font-size: 14px;
}

.info-value {
  font-weight: 600;
  color: #1f2937;
  text-align: right;
}

.tickets-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.tickets-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tickets-title::before {
  content: "🎫";
  font-size: 20px;
}

.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #e5e7eb;
}

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

.ticket-name {
  font-weight: 600;
  color: #1f2937;
}

.ticket-count {
  background: #dbeafe;
  color: #1e40af;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}

.modern-back-button {
  background: linear-gradient(135deg, #4f9cf9, #3b82f6);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.modern-back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 156, 249, 0.4);
  color: white;
}

.modern-footer {
  text-align: center;
  padding: 20px;
  color: #6b7280;
  font-size: 14px;
  background: #f8fafc;
}

/* ========== CREATE MANAGER ========== */
.create-manager-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.create-manager-header {
  background: linear-gradient(135deg, #4f9cf9 0%, #3b82f6 100%);
  padding: 32px;
  color: white;
}

.create-manager-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-description {
  color: #6b7280;
  margin-bottom: 24px;
}

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

.manager-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

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

.manager-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.manager-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.manager-email {
  color: #6b7280;
  margin: 0;
  font-size: 14px;
}

.delete-button {
  background: #ef4444;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-button:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.events-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
}

.events-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-tag {
  background: #dbeafe;
  color: #1e40af;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.event-id {
  opacity: 0.7;
}

.no-events {
  color: #9ca3af;
  font-style: italic;
  margin: 0;
  font-size: 14px;
}

.no-managers-message {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.create-manager-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
}

.form-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
}

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

.events-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.checkbox-item:hover {
  background: #f9fafb;
  border-color: #3b82f6;
}

.checkbox-input {
  width: 16px;
  height: 16px;
}

.checkbox-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.event-name {
  font-weight: 600;
  color: #374151;
}

.event-id-small {
  font-size: 12px;
  color: #6b7280;
}

.no-events-warning {
  background: #fef3c7;
  color: #92400e;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #f59e0b;
}

.submit-button {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ========== RESUBMIT SEARCH ========== */
.resubmit-search-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.resubmit-search-header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 32px;
  color: white;
}

.resubmit-search-content {
  padding: 32px;
}

.search-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e2e8f0;
}

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

.search-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.search-card-description {
  color: #6b7280;
  margin: 0;
  font-size: 16px;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.label-icon {
  font-size: 18px;
}

.search-button {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: center;
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.info-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.info-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #6b7280;
  position: relative;
  padding-left: 24px;
}

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

.info-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* ========== RESUBMIT ORDER ========== */
.resubmit-order-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.resubmit-order-header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 32px;
  color: white;
}

.resubmit-order-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.order-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.resubmit-action-section {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 12px;
  padding: 24px;
  border: 2px solid #f59e0b;
}

.resubmit-action-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
}

.resubmit-action-header {
  text-align: center;
  margin-bottom: 24px;
}

.resubmit-action-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.resubmit-action-description {
  color: #6b7280;
  margin: 0;
  font-size: 16px;
}

.form-actions {
  display: flex;
  gap: 16px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.back-button {
  background: #6b7280;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: #4b5563;
  transform: translateY(-2px);
  color: white;
}

.resubmit-button {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.resubmit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* ========== INVITE EXPIRED ========== */
.invite-expired-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.expired-card {
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  text-align: center;
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 10;
  animation: slideIn 0.6s ease-out;
}

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

.expired-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

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

.expired-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 24px 0;
}

.expired-message {
  margin-bottom: 32px;
}

.primary-message {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
}

.secondary-message {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.help-section {
  margin-bottom: 32px;
}

.help-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.help-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
  text-align: center;
}

.help-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-list li {
  padding: 8px 0;
  color: #6b7280;
  position: relative;
  padding-left: 24px;
  line-height: 1.4;
}

.help-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.login-button {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  color: white;
}

.contact-button {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  color: white;
}

.background-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.circle-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.circle-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* ========== SET PASSWORD ========== */
.set-password-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
}

.set-password-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

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

.set-password-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--md-text);
  margin-bottom: 16px;
}

.invitation-info {
  text-align: left;
  margin-top: 20px;
}

.invitation-text {
  color: var(--md-label);
  margin-bottom: 16px;
  line-height: 1.5;
}

.password-requirements {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid var(--md-primary);
}

.password-requirements h4 {
  margin: 0 0 8px 0;
  color: var(--md-text);
  font-size: 14px;
}

.password-requirements ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--md-label);
}

.password-requirements li {
  margin-bottom: 4px;
}

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

.password-strength-indicator {
  margin-top: 8px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 0%;
}

.strength-bar.weak {
  background: #ef4444;
}

.strength-bar.medium {
  background: #f59e0b;
}

.strength-bar.strong {
  background: #10b981;
}

.set-password-submit {
  background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.set-password-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* ========== SEARCH RESULTS ========== */
.search-results-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.search-results-header {
  background: linear-gradient(135deg, #4f9cf9 0%, #3b82f6 100%);
  padding: 32px;
  color: white;
}

.back-navigation {
  margin-bottom: 16px;
}

.back-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link:hover {
  color: white;
  transform: translateX(-2px);
}

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

.search-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.results-count {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

.search-results-content {
  padding: 32px;
}

.no-results-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--md-label);
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.no-results-message h3 {
  color: var(--md-text);
  margin-bottom: 8px;
}

.try-again-button {
  background: var(--md-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 16px;
  display: inline-block;
  transition: all 0.2s ease;
}

.try-again-button:hover {
  background: var(--md-primary-dark);
  transform: translateY(-2px);
  color: white;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.result-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

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

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.order-id-large {
  font-size: 20px;
  font-weight: 700;
}

.order-link-large {
  color: var(--md-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.order-link-large:hover {
  color: var(--md-primary-dark);
}

.result-card-content {
  margin-bottom: 20px;
}

.event-info {
  margin-bottom: 16px;
}

.event-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--md-text);
  margin: 0 0 8px 0;
}

.buyer-name {
  color: var(--md-label);
  font-size: 14px;
}

.order-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  color: var(--md-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-weight: 600;
  color: var(--md-text);
  font-size: 14px;
}

.result-card-actions {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  text-align: right;
}

.view-details-button {
  background: var(--md-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.view-details-button:hover {
  background: var(--md-primary-dark);
  transform: translateY(-1px);
  color: white;
}

/* ========== PAYLOGIC ORDER DETAILS STYLING (nur für ticket_buyer) ========== */

/* Paylogic Farbvariablen für Order Details */
.paylogic-order-details {
  --paylogic-pink: #e5007d;
  --paylogic-orange: #e1b200;
  --paylogic-black: #000000;
  --paylogic-white: #ffffff;
}

/* Override Body Background für Paylogic Ticketkäufer */
body.paylogic-body {
  background: var(--paylogic-black) !important;
}

/* Container-Override für Paylogic */
.paylogic-order-details .order-container {
  background: var(--paylogic-white);
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}

/* Header mit Paylogic-Logo und Design */
.paylogic-order-details .order-header {
  background: var(--paylogic-white);
  padding: 24px 32px;
  color: var(--paylogic-black);
  border-bottom: 2px solid #f1f5f9;
}

.paylogic-order-details .paylogic-header-logo {
  text-align: center;
  margin-bottom: 20px;
}

.paylogic-order-details .paylogic-logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.paylogic-order-details .order-header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.paylogic-order-details .order-user-info {
  font-size: 14px;
  color: #6b7280;
  order: 3;
}

/* Title Section mit Paylogic-Styling */
.paylogic-order-details .order-title-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--paylogic-pink);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(225, 178, 0, 0.3), 0 6px 12px rgba(225, 178, 0, 0.2);
  transform: translateY(-4px);
  text-align: center;
  flex-direction: column;
  gap: 16px;
}

.paylogic-order-details .order-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--paylogic-white);
  margin: 0;
}

.paylogic-order-details .status-badge {
  background: var(--paylogic-orange) !important;
  color: var(--paylogic-white) !important;
  border: 2px solid var(--paylogic-white);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Cards Grid mit Paylogic-Design */
.paylogic-order-details .cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.paylogic-order-details .detail-card {
  background: var(--paylogic-pink);
  border-radius: 16px;
  padding: 24px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(225, 178, 0, 0.25), 0 5px 10px rgba(225, 178, 0, 0.15);
  transform: translateY(-3px);
}

.paylogic-order-details .detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(225, 178, 0, 0.35), 0 8px 16px rgba(225, 178, 0, 0.25);
  border-color: var(--paylogic-orange);
}

.paylogic-order-details .card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--paylogic-white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.paylogic-order-details .card-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--paylogic-orange);
  border-radius: 2px;
}

.paylogic-order-details .info-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.paylogic-order-details .info-value {
  font-weight: 600;
  color: var(--paylogic-white);
  text-align: right;
}

.paylogic-order-details .tracking-link {
  color: var(--paylogic-orange) !important;
  text-decoration: underline;
  font-weight: 600;
}

.paylogic-order-details .tracking-link:hover {
  color: #c89f00 !important;
}

/* Tickets Section mit Paylogic-Design */
.paylogic-order-details .tickets-section {
  background: var(--paylogic-pink);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 10px 20px rgba(225, 178, 0, 0.25), 0 5px 10px rgba(225, 178, 0, 0.15);
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

.paylogic-order-details .tickets-section:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(225, 178, 0, 0.35), 0 8px 16px rgba(225, 178, 0, 0.25);
}

.paylogic-order-details .tickets-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--paylogic-white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.paylogic-order-details .tickets-title::before {
  content: "🎫";
  font-size: 20px;
}

.paylogic-order-details .ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--paylogic-white);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(225, 178, 0, 0.3);
  transition: all 0.2s ease;
}

.paylogic-order-details .ticket-item:hover {
  transform: translateX(4px);
  border-color: var(--paylogic-orange);
  box-shadow: 0 4px 8px rgba(225, 178, 0, 0.2);
}

.paylogic-order-details .ticket-item:last-child {
  margin-bottom: 0;
}

.paylogic-order-details .ticket-name {
  font-weight: 600;
  color: var(--paylogic-black);
}

.paylogic-order-details .ticket-count {
  background: var(--paylogic-orange);
  color: var(--paylogic-white);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(225, 178, 0, 0.3);
}

/* Navigation Buttons für Ticketkäufer */
.paylogic-order-details .paylogic-navigation {
  text-align: center;
  margin-top: 32px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px solid var(--paylogic-pink);
}

.paylogic-order-details .paylogic-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.paylogic-order-details .paylogic-back-button {
  background: linear-gradient(135deg, var(--paylogic-pink), #d4006b);
  color: var(--paylogic-white);
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(229, 0, 125, 0.3);
}

.paylogic-order-details .paylogic-back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 0, 125, 0.4);
  color: var(--paylogic-white);
}

.paylogic-order-details .paylogic-countdown {
  background: #fef3c7;
  color: #92400e;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border: 2px solid var(--paylogic-orange);
  box-shadow: 0 4px 8px rgba(225, 178, 0, 0.2);
}

.paylogic-order-details .countdown-number {
  background: var(--paylogic-orange);
  color: var(--paylogic-white);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(225, 178, 0, 0.3);
}
/* Timer-Stopp bei Hover für bessere UX */
.paylogic-order-details .paylogic-countdown:hover {
  animation-play-state: paused;
}

.paylogic-order-details .paylogic-countdown.paused {
  opacity: 0.7;
  transform: scale(0.98);
}

/* Info Box für Ticketkäufer */
.paylogic-order-details .paylogic-info {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 2px solid var(--paylogic-pink);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  text-align: center;
}

.paylogic-order-details .paylogic-info-text {
  color: var(--paylogic-black);
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

/* Footer mit Paylogic-Branding */
.paylogic-order-details .modern-footer {
  background: var(--paylogic-black);
  color: var(--paylogic-white);
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 0;
}

/* Warnung bei niedrigem Timer */
.paylogic-order-details .paylogic-countdown.warning {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
  animation: paylogicPulseWarning 1s infinite;
}

.paylogic-order-details .paylogic-countdown.warning .countdown-number {
  background: #ef4444;
}

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

/* Responsive Design für Paylogic Order Details */
@media (max-width: 768px) {
  .paylogic-order-details .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .paylogic-order-details .order-title-section {
    padding: 20px;
    margin-bottom: 24px;
  }
  
  .paylogic-order-details .order-title {
    font-size: 24px;
  }
  
  .paylogic-order-details .paylogic-logo {
    height: 40px;
  }
  
  .paylogic-order-details .paylogic-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .paylogic-order-details .paylogic-back-button {
    width: 100%;
    justify-content: center;
  }
  
  .paylogic-order-details .paylogic-countdown {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .paylogic-order-details .order-content {
    padding: 16px;
  }
  
  .paylogic-order-details .paylogic-navigation {
    padding: 16px;
    margin-top: 24px;
  }
}

/* Animationen für bessere UX */
.paylogic-order-details .order-container {
  animation: paylogicSlideIn 0.5s ease-out;
}

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

.paylogic-order-details .paylogic-countdown {
  animation: paylogicPulseCountdown 2s infinite;
}

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

/* ========== ADMIN-SPEZIFISCHE NAVIGATION ========== */
.admin-nav {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
}

.nav-admin {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: rgba(255,255,255,0.95) !important;
}

.nav-admin:hover {
  background: rgba(124, 58, 237, 0.4) !important;
  color: white !important;
}

.nav-back {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-back:hover {
  background: rgba(59, 130, 246, 0.4) !important;
}

/* ========== ADMIN DASHBOARD ========== */
.admin-dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.admin-dashboard-header {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  padding: 32px;
  color: white;
}

.dashboard-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-align: center;
}

.dashboard-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
  text-align: center;
}

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

.header-text {
  flex: 1;
}

.admin-user-card {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
  border: 1px solid rgba(255,255,255,0.2);
}

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

.user-icon {
  font-size: 24px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-label {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
}

.logout-button {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.3);
}

.logout-button:hover {
  background: rgba(255,255,255,0.3);
  color: white;
  transform: translateY(-1px);
}


.admin-dashboard-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ========== STATISTIKEN-SECTION ========== */
.stats-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.stat-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.stat-icon {
  font-size: 32px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* ========== STATUS-VERTEILUNG ========== */
.status-section {
  margin-bottom: 32px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.status-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.2s ease;
}

.status-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.status-count {
  margin-top: 8px;
  font-weight: 600;
  color: #374151;
}

/* ========== NEUESTE BESTELLUNGEN ========== */
.recent-orders-section {
  margin-bottom: 32px;
}

.recent-orders-table {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr 1.5fr 1fr 0.8fr;
  background: linear-gradient(135deg, #374151, #1f2937);
  color: white;
}

.header-cell {
  padding: 16px 12px;
  font-weight: 600;
  font-size: 14px;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr 1.5fr 1fr 0.8fr;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.table-row:hover {
  background: #f1f5f9;
}

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

.table-cell {
  padding: 16px 12px;
  font-size: 14px;
  color: #374151;
  display: flex;
  align-items: center;
}

.table-cell .order-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.table-cell .order-link:hover {
  color: #1d4ed8;
}

/* ========== ADMIN-AKTIONEN ========== */
.admin-actions-section {
  margin-bottom: 32px;
}

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

.action-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: inherit;
}

.action-icon {
  font-size: 32px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.action-content {
  flex: 1;
}

.action-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.action-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
}

/* ========== RESPONSIVE DESIGN FÜR ADMIN-BEREICH ========== */
@media (max-width: 768px) {
  .admin-dashboard-content {
    padding: 16px;
    gap: 32px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .status-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .header-cell,
  .table-cell {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .table-row {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 8px;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .action-card {
    padding: 20px;
  }
}

/* ========== STATUS BADGES ERWEITERT ========== */
.status-badge.shipped {
  background: #dcfce7;
  color: #166534;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.printready {
  background: #e0e7ff;
  color: #3730a3;
}

.status-badge.processing {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.delivered {
  background: #d1fae5;
  color: #065f46;
}

/* ========== LEGACY COMPATIBILITY STYLES ========== */
/* Keep existing styles for backwards compatibility */
header h2 {
  text-align: center;
  margin: 1.5rem 10%;
  color: var(--md-primary);
}

.primary-nav {
  background-color: var(--md-primary);
  margin: 0 10%;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.primary-nav .user-label {
  color: #fff;
  font-weight: bold;
  margin-right: 1.5rem;
}

.primary-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.primary-nav a:hover,
.primary-nav a:focus {
  background-color: rgba(255, 255, 255, 0.2);
}

button,
.button {
  background-color: var(--md-primary);
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.button:hover {
  background-color: var(--md-primary-dark) !important;
  color: #ffffff !important;
}

a {
  color: var(--md-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--md-primary-dark);
}

.tracking-link {
  text-decoration: underline;
  color: var(--md-primary);
}

.tracking-link:hover {
  color: var(--md-primary-dark);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5rem;
}

table thead {
  background-color: var(--md-primary);
  color: #fff;
}

table th,
table td {
  padding: 0.75rem;
  border: 1px solid var(--md-border);
}

table tr:nth-child(even) {
  background-color: #f5f5f5;
}

table thead a {
  color: #fff !important;
  text-decoration: none;
}

table thead a:hover,
table thead a:focus {
  color: #e0e0e0 !important;
  text-decoration: underline;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  padding: 0.5rem;
  border: 1px solid var(--md-border);
  border-radius: 0.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--md-primary);
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.alert {
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
}

.alert-success {
  background-color: #C8E6C9;
  color: #256029;
  border: 1px solid #2E7D32;
}

.alert-danger {
  background-color: #FFCDD2;
  color: #B71C1C;
  border: 1px solid #D32F2F;
}

.alert-warning {
  background-color: #FFE0B2;
  color: #E65100;
  border: 1px solid #EF6C00;
}

.alert-info {
  background-color: #BBDEFB;
  color: #0D47A1;
  border: 1px solid #1976D2;
  padding: 0.75rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.primary-footer {
  background-color: var(--md-primary);
  color: #fff;
  text-align: center;
  padding: 0.1rem;
  font-size: 0.9rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  /* Login */
  .login-forms {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Orders Overview */
  .filter-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .filter-actions {
    justify-content: center;
  }
  
  .orders-grid {
    grid-template-columns: 1fr;
  }
  
  /* Order Details & Create Manager */
  .cards-grid,
  .order-details-grid {
    grid-template-columns: 1fr;
  }
  
  .order-header-top {
    flex-direction: column;
    gap: 16px;
  }
  
  .order-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .order-title-section {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .order-content,
  .create-manager-content,
  .resubmit-order-content,
  .resubmit-search-content {
    padding: 16px;
  }

  /* Create Manager */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .managers-grid {
    grid-template-columns: 1fr;
  }
  
  .events-checkbox-grid {
    grid-template-columns: 1fr;
  }

  /* Resubmit */
  .form-actions {
    flex-direction: column;
    gap: 12px;
  }

  /* Invite Expired */
  .expired-card {
    padding: 32px 24px;
    margin: 20px;
  }
  
  .expired-title {
    font-size: 24px;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .login-button,
  .contact-button {
    width: 100%;
    justify-content: center;
  }

  /* Set Password */
  .set-password-card {
    padding: 32px 24px;
    margin: 20px;
  }

  /* Search Results */
  .results-grid {
    grid-template-columns: 1fr;
  }
}
