:root {
  /* Farben - Dark Theme */
  --bg-primary: #0a0e14;
  --bg-secondary: #131920;
  --bg-tertiary: #1a2128;
  --bg-card: rgba(26, 33, 40, 0.8);
  --bg-card-hover: rgba(26, 33, 40, 0.95);
  
  /* Akzentfarben */
  --accent-green: #4ade80;
  --accent-yellow: #fbbf24;
  --accent-cyan: #22d3ee;
  --accent-red: #ef4444;
  
  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Border & Shadows */
  --border-color: rgba(148, 163, 184, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  
  /* Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Sidebar */
  --sidebar-width: 260px;
  --topbar-height: 70px;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Custom Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(74, 222, 128, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* App Container */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 1100;
  backdrop-filter: blur(10px);
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header i {
  font-size: 28px;
}

.sidebar-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.sidebar-item:hover {
  background: rgba(74, 222, 128, 0.1);
  color: var(--accent-green);
  transform: translateX(4px);
}

.sidebar-item.active {
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-green);
}

.sidebar-item i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

.sidebar-section {
  padding: 8px 16px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 8px;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.user-status {
  font-size: 12px;
  color: var(--text-muted);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-icon:hover {
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-green);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Content Wrapper */
.content-wrapper {
  padding: 32px;
  flex: 1;
}

/* Welcome Section */
.welcome-section {
  margin-bottom: 32px;
}

.welcome-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.welcome-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Stats Cards */
.stats-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.stats-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stats-icon.bg-success {
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-green);
}

.stats-icon.bg-warning {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-yellow);
}

.stats-icon.bg-info {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan);
}

.stats-icon.bg-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.stats-content {
  flex: 1;
}

.stats-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.stats-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.card-body {
  padding: 24px;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(148, 163, 184, 0.05);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(148, 163, 184, 0.1);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.activity-time {
  font-size: 13px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 10px 20px;
  transition: all 0.2s ease;
}

.btn-success {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #000;
}

.btn-success:hover {
  background: #22c55e;
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-discord {
  background: #5865F2;
  border-color: #5865F2;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  font-size: 16px;
}

.btn-discord:hover {
  background: #4752C4;
  border-color: #4752C4;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Landing Page */
.landing-page {
  background: linear-gradient(135deg, #0a0e14 0%, #131920 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-container {
  text-align: center;
  padding: 40px;
}

.landing-logo {
  font-size: 72px;
  color: var(--accent-green);
  margin-bottom: 24px;
}

.landing-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.landing-features {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 60px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.feature-item i {
  font-size: 32px;
  color: var(--accent-green);
}

/* Auth Pages */
.auth-page {
  background: linear-gradient(135deg, #0a0e14 0%, #131920 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  padding: 40px;
  max-width: 500px;
  width: 100%;
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.auth-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}

.auth-icon.error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.auth-icon.blocked {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-yellow);
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.auth-message {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.auth-info {
  background: rgba(148, 163, 184, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
}

.auth-info i {
  color: var(--accent-cyan);
  font-size: 20px;
  margin-top: 2px;
}

.auth-info ul {
  margin: 0;
  padding-left: 20px;
}

/* Alerts */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.alert-success {
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-green);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.alert-warning {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-yellow);
}

.alert-info {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan);
}

/* Table */
.table {
  color: var(--text-primary);
}

.table thead {
  border-bottom: 2px solid var(--border-color);
}

.table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(74, 222, 128, 0.05);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: transparent;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .sidebar-overlay.active {
    pointer-events: all;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .stats-card {
    margin-bottom: 16px;
  }
  
  .topbar-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    padding: 16px;
  }
  
  .welcome-title {
    font-size: 1.75rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}
