/* Moderne FilesHub Styles */

:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #64748b;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 280px;
  --ad-sidebar-width: 200px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary-color: #60a5fa;
  --primary-hover: #3b82f6;
  --secondary-color: #94a3b8;
  --background: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border: #334155;
  --border-hover: #475569;
  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dark-mode-toggle {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.dark-mode-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

[data-theme="dark"] .dark-mode-toggle i::before {
  content: "\f185"; /* sun icon */
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.sidebar h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search Container */
.search-container {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

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

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 16px;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--background);
  transition: var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-color);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Navigation */
.converter-nav {
  padding: 16px 0;
}

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

.nav-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-section-title.collapsible {
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  margin: 0 12px;
}

.nav-section-title.collapsible:hover {
  background: var(--surface-hover);
  color: var(--primary-color);
}

.nav-section-title .collapse-icon {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.nav-section-title.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.nav-section-title i {
  font-size: 16px;
  color: var(--primary-color);
}

.nav-list {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  max-height: 1000px;
}

.nav-list.collapsed {
  max-height: 0;
  margin: 0;
  opacity: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  margin: 2px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  color: var(--text-primary);
}

.nav-item:hover {
  background: var(--surface-hover);
  color: var(--primary-color);
  transform: translateX(4px);
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.nav-item i {
  font-size: 14px;
  color: inherit;
  transition: var(--transition);
}

/* Main Content */
.main-content {
  display: flex;
  margin-left: var(--sidebar-width);
  height: 100vh;
  overflow: hidden;
}

.content-wrapper {
  flex: 1;
  padding: 32px 32px 32px 32px;
  overflow-y: auto;
  max-width: calc(100% - var(--ad-sidebar-width) - 40px);
  min-height: calc(100vh - 140px); /* Mindesthöhe um Überlappung zu vermeiden */
  margin-bottom: 140px; /* Abstand zur Bottom Ad */
}

/* Views */
.view {
  display: none;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 140px; /* Abstand zur Bottom Ad */
  min-height: calc(100vh - 200px);
}

.view.active {
  display: block;
}

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

/* Welcome View */
.welcome-header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeIn 1s ease-out;
}

.welcome-header h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-header p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.feature-card i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Converter View */
.converter-header {
  margin-bottom: 32px;
  animation: slideInLeft 0.6s ease-out;
}

.converter-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.converter-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.converter-area {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation: slideInRight 0.6s ease-out;
  position: relative;
  z-index: 1;
  margin-bottom: 160px; /* Extra Abstand zur Bottom Ad */
}

/* Upload Zone Anpassungen */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  background: var(--background);
  transition: var(--transition);
  cursor: pointer;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.upload-zone:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.02);
}

.upload-zone.dragover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 64px;
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: var(--transition);
}

.upload-zone:hover .upload-icon {
  color: var(--primary-color);
  transform: scale(1.1);
}

.upload-zone h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.upload-zone p {
  color: var(--text-secondary);
  font-size: 16px;
}

#fileInput {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* File List */
.file-list {
  margin-top: 24px;
  display: none;
}

.file-list.show {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: var(--transition);
}

.file-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 24px;
  color: var(--primary-color);
}

.file-details h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.file-details p {
  font-size: 12px;
  color: var(--text-muted);
}

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

.btn-icon {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  position: relative;
  z-index: 10;
}

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

.btn-icon.remove:hover {
  background: var(--error);
  color: white;
  transform: scale(1.05);
}

.btn-icon.remove:active {
  transform: scale(0.95);
}

/* Buttons */
.convert-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  animation: fadeInUp 0.4s ease-out;
}

.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  outline: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Ad Sidebar - immer sichtbar für AdSense */
.ad-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: var(--ad-sidebar-width);
  height: 100vh;
  padding: 16px 8px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  overflow: hidden;
}

/* AdSense Container */
.ad-sidebar .adsbygoogle {
  width: 160px;
  height: 600px;
  display: block !important;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Bottom Ad - immer Platz reservieren */
.bottom-ad {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: var(--ad-sidebar-width);
  height: 80px; /* Reduziert von 120px auf 80px */
  padding: 12px 32px; /* Reduziert padding */
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.bottom-ad .adsbygoogle {
  width: 728px;
  height: 60px; /* Reduziert von 90px auf 60px */
  display: block !important;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Content-Wrapper Anpassungen */
.content-wrapper {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  margin-right: 0; /* Keine rechte Margin standardmäßig */
  padding-bottom: 32px; /* Keine extra Padding für Ads */
  transition: var(--transition);
}

/* Wenn Ads geladen sind */
.content-wrapper.ads-loaded {
  margin-right: var(--ad-sidebar-width);
  padding-bottom: 100px; /* Reduziert von 130px auf 100px */
}

.ad-banner {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ad-banner.vertical {
  height: 600px;
  flex-direction: column;
}

.ad-banner.horizontal {
  height: 120px;
}

.ad-banner:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.ad-placeholder i {
  font-size: 32px;
  opacity: 0.5;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* Loading States */
.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Progress Bar */
.progress-container {
  margin-top: 16px;
  display: none;
}

.progress-container.show {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--background);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
  border-radius: 4px;
  transition: width 0.3s ease;
  transform-origin: left;
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.content-wrapper::-webkit-scrollbar {
  width: 8px;
}

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

.content-wrapper::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.content-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Responsive Design */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1001;
}

.mobile-menu-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--background);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 18px;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--surface-hover);
  transform: scale(1.05);
}

.mobile-logo h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 1200px) {
  .ad-sidebar {
    display: none !important;
  }
  
  .bottom-ad {
    right: 0;
  }
  
  .content-wrapper {
    margin-right: 0 !important;
  }

  .bottom-ad .adsbygoogle {
    width: 100%;
    max-width: 728px;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 100%;
  }
  
  .mobile-header {
    display: flex;
  }
  
  .app-container {
    padding-top: 72px; /* Space for mobile header */
  }
  
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .content-wrapper {
    margin-right: 0 !important;
    padding: 16px;
    padding-bottom: 16px; /* Reduziert, da bottom-ad sich anpasst */
  }
  
  .content-wrapper.ads-loaded {
    padding-bottom: 100px; /* Reduziert, auch für mobile */
  }
  
  .bottom-ad {
    left: 0;
    right: 0;
    margin-left: 0;
  }

  .bottom-ad .adsbygoogle {
    width: 100%;
    height: auto;
    min-height: 60px; /* Reduziert von 90px auf 60px */
  }
  
  .welcome-header h2 {
    font-size: 32px;
  }
  
  /* Service Interface Responsive */
  .service-interface {
    margin: 16px 0;
    padding: 16px;
  }
  
  .input-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .password-result {
    flex-direction: column;
    gap: 12px;
  }
  
  .password-output {
    min-width: auto;
    width: 100%;
  }
  
  .url-input-container .input-group {
    flex-direction: column;
  }
  
  .qr-generator-container,
  .password-generator-container,
  .file-merger-container,
  .file-splitter-container {
    max-width: 100%;
    padding: 0 8px;
  }
  
  .welcome-header p {
    font-size: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
  
  .converter-area {
    padding: 24px 16px;
  }
  
  .upload-zone {
    padding: 32px 16px;
  }
  
  .upload-icon {
    font-size: 48px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .convert-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 100vw;
  }
  
  .welcome-header h2 {
    font-size: 28px;
  }
  
  .feature-card {
    padding: 20px 16px;
  }
  
  .feature-card i {
    font-size: 36px;
  }
  
  .converter-area {
    padding: 20px 12px;
  }
  
  .upload-zone {
    padding: 24px 12px;
  }
}

/* Enhanced animations and micro-interactions */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.feature-card:nth-child(odd) {
  animation: float 6s ease-in-out infinite;
}

.feature-card:nth-child(even) {
  animation: float 6s ease-in-out infinite reverse;
}

/* Loading shimmer effect */
.loading-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Improved hover effects */
.nav-item {
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  transform: scaleY(0);
  transition: var(--transition);
  border-radius: 0 2px 2px 0;
}

.nav-item.active::before,
.nav-item:hover::before {
  transform: scaleY(1);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus improvements */
.nav-item:focus-visible,
.search-input:focus-visible,
.btn:focus-visible,
.upload-zone:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Better file list animations */
.file-item {
  animation: slideInFromLeft 0.4s ease-out;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced button interactions */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f172a;
    --surface: #1e293b;
    --surface-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: #334155;
    --border-hover: #475569;
  }
}

/* Status indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  animation: fadeInUp 0.3s ease-out;
}

.status-indicator.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-indicator.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-indicator.processing {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Download Area */
.download-area {
  margin-top: 32px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: fadeInUp 0.6s ease-out;
}

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

.download-header i {
  font-size: 48px;
  color: var(--success);
  margin-bottom: 12px;
  display: block;
}

.download-header h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.download-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

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

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.download-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.download-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-item-info i {
  font-size: 20px;
  color: var(--success);
}

.download-item-details h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.download-item-details p {
  font-size: 12px;
  color: var(--text-muted);
}

.download-btn {
  padding: 8px 16px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: modalFadeIn 0.3s ease-out;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--background);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.modal-content {
  padding: 24px;
}

.modal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.filename-input-group {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.filename-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filename-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--text-primary);
}

.filename-input::placeholder {
  color: var(--text-muted);
}

.file-extension {
  padding: 12px 16px;
  background: var(--background);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-left: 1px solid var(--border);
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

.modal-actions .btn {
  min-width: 100px;
}

/* Modal Animations */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes modalFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

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

/* Hidden elements */
.hidden {
  display: none !important;
}

/* Service Interface spezifische Styles */
.service-interface {
  margin: 24px 0;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.service-interface h3 {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: stretch;
  width: 100%;
}

.service-input, .service-textarea {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  background: var(--surface);
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  min-height: 48px;
  box-sizing: border-box;
  width: 100%;
  font-family: inherit;
  line-height: 1.5;
}

.service-input:focus, .service-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: var(--surface);
}

.service-input::placeholder, .service-textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* Bessere Sichtbarkeit für Service Inputs */
.service-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.service-input:hover {
  border-color: var(--border-hover);
}

.service-input:active {
  border-color: var(--primary-color);
}

.service-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.service-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0 0;
  text-align: center;
}

/* URL Input Container für Online Services */
.url-input-container {
  text-align: center;
  padding: 20px;
}

.url-input-container h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 20px;
}

.url-input-container .input-group {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.url-input-container .service-input {
  flex: 1;
  min-width: 0;
}

/* Video Preview */
.video-preview {
  margin-top: 24px;
  padding: 20px;
  background: var(--background);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.video-info {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.video-details {
  flex: 1;
  min-width: 0;
}

.video-thumbnail {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.video-details h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.service-badge {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.video-details p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.quality-selection {
  margin-bottom: 20px;
}

.quality-selection h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.quality-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quality-option {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
  min-width: 120px;
  text-align: center;
  position: relative;
}

.quality-option:hover {
  border-color: var(--primary);
  background: var(--background);
  transform: translateY(-1px);
}

.quality-option.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Password Generator */
.password-generator-container {
  max-width: 600px;
  margin: 0 auto;
}

.password-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.password-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}

.password-options input[type="range"] {
  flex: 1;
  margin: 0 8px;
}

.password-options input[type="checkbox"] {
  accent-color: var(--primary-color);
}

.password-result {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.password-output {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background: var(--background);
  color: var(--text-primary);
  outline: none;
}

/* QR Generator */
.qr-generator-container {
  max-width: 500px;
  margin: 0 auto;
}

.qr-options {
  margin-bottom: 16px;
  text-align: center;
}

.qr-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
}

.qr-options select {
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--text-primary);
  outline: none;
}

.qr-preview {
  text-align: center;
  padding: 20px;
  background: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 16px;
}

.qr-preview img {
  display: block;
  margin: 0 auto 16px auto;
  max-width: 100%;
  height: auto;
}

/* URL Input Container */
.url-input-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.url-input-container .input-group {
  max-width: 100%;
  margin: 0 auto;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .url-input-container .input-group {
    flex-direction: row;
    gap: 12px;
  }
}

/* File Service Containers */
.file-merger-container,
.file-splitter-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.split-options {
  margin-bottom: 20px;
}

.split-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
}

.split-options select {
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--text-primary);
  outline: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 0;
    --ad-sidebar-width: 0;
  }

  .main-content {
    margin-left: 0;
  }

  .content-wrapper {
    max-width: 100%;
    padding: 16px;
    margin-bottom: 0; /* Keine Bottom Ad auf Mobile */
    min-height: calc(100vh - 60px);
  }

  .converter-area {
    margin-bottom: 20px; /* Weniger Abstand auf Mobile */
    padding: 20px;
  }

  .ad-sidebar {
    display: none; /* AdSense auf Mobile ausblenden */
  }

  .bottom-ad {
    display: none; /* Bottom Ad auf Mobile ausblenden */
  }

  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

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

  .url-input-container .input-group {
    flex-direction: column;
    gap: 16px;
  }

  .service-interface {
    padding: 16px;
    margin: 16px 0;
  }

  .video-info {
    flex-direction: column;
    text-align: center;
  }

  .video-thumbnail {
    align-self: center;
  }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .content-wrapper {
    max-width: calc(100% - 40px);
    margin-right: 0;
  }

  .ad-sidebar {
    display: none;
  }

  .bottom-ad {
    right: 0;
  }
}

/* Desktop specific styles */
@media (min-width: 1025px) {
  .mobile-header {
    display: none;
  }

  .content-wrapper {
    margin-right: 0;
  }
}
