/* Local Font */
@font-face {
  font-family: "ModernFlow";
  font-weight: normal;
  font-style: normal;
}

/* CSS Custom Properties for Theme System */
:root {
  /* Dark Theme (Default) */
  --bg-primary: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  --bg-secondary: rgba(255, 255, 255, 0.05);
  --bg-tertiary: rgba(255, 255, 255, 0.1);
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-accent: #667eea;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --success-color: #4caf50;
  --error-color: #f44336;
  --warning-color: #ff9800;
}

[data-theme="light"] {
  /* Light Theme */
  --bg-primary: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --bg-secondary: rgba(0, 0, 0, 0.08);
  --bg-tertiary: rgba(0, 0, 0, 0.15);
  --text-primary: #2c2c2c;
  --text-secondary: #666666;
  --text-accent: #5a67d8;
  --border-color: rgba(0, 0, 0, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.15);
  --accent-gradient: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
  --card-bg: rgba(255, 255, 255, 0.8);
  --hover-bg: rgba(0, 0, 0, 0.05);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "ModernFlow", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Roboto", "Oxygen", "Ubuntu", "sans-serif";
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

/* Light theme navbar */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand .logo {
  font-size: 1.5rem;
  margin: 0;
}

.beta-badge {
  background: var(--accent-gradient);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  transform: scale(1.05);
}

.stats-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Light theme stats widget */
[data-theme="light"] .stats-widget {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-count {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-accent);
}

.stats-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Enhanced Header */
.header {
  text-align: center;
  padding: 3rem 0;
  position: relative;
}

.hero-content {
  margin-bottom: 2rem;
}

.hero-title {
  font-family: "ModernFlow", cursive;
  font-size: 3.5rem;
  font-weight: bold;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px var(--shadow-color);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
  }
  to {
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.6));
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.feature-tag {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

/* Light theme feature tags */
[data-theme="light"] .feature-tag {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Quick Stats */
.quick-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 0 auto;
}

/* Light theme quick stats */
[data-theme="light"] .quick-stats {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-accent);
  font-family: "ModernFlow", cursive;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.logo {
  font-family: "ModernFlow", cursive;
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.subtitle {
  font-size: 1.1rem;
  color: #888;
  font-weight: 300;
}

/* Main Content */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Upload Section */
.upload-section {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.upload-section:hover {
  border-color: var(--text-accent);
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* Light theme upload section */
[data-theme="light"] .upload-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px var(--shadow-color);
}

[data-theme="light"] .upload-section:hover {
  border-color: var(--text-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: "ModernFlow", cursive;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1rem;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.search-container {
  display: flex;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* Light theme search container */
[data-theme="light"] .search-container {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input {
  background: transparent;
  border: none;
  padding: 8px 12px;
  color: var(--text-primary);
  outline: none;
  width: 200px;
}

/* Light theme search input */
[data-theme="light"] .search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
}

.search-btn {
  background: var(--text-accent);
  border: none;
  padding: 8px 12px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: var(--text-accent);
  filter: brightness(1.1);
}

.filter-container {
  display: flex;
  gap: 10px;
}

.filter-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  /* Enhanced select styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  padding-right: 32px;
  color-scheme: dark;
}

/* Light theme filter select */
[data-theme="light"] .filter-select {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  color-scheme: light;
}

.filter-select option {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
  padding: 6px 8px !important;
}

.filter-select option:hover {
  background-color: #2a2a2a !important;
  color: #667eea !important;
}

.filter-select option:checked {
  background-color: #667eea !important;
  color: white !important;
}

/* Light theme filter select */
[data-theme="light"] .filter-select {
  color-scheme: light;
}

[data-theme="light"] .filter-select option {
  background-color: #f8f9fa !important;
  color: #2c2c2c !important;
}

[data-theme="light"] .filter-select option:hover {
  background-color: #e9ecef !important;
  color: #5a67d8 !important;
}

[data-theme="light"] .filter-select option:checked {
  background-color: #5a67d8 !important;
  color: white !important;
}

[data-theme="light"] .form-group select option {
  background-color: #f8f9fa !important;
  color: #2c2c2c !important;
}

[data-theme="light"] .form-group select option:hover {
  background-color: #e9ecef !important;
  color: #5a67d8 !important;
}

[data-theme="light"] .form-group select option:checked {
  background-color: #5a67d8 !important;
  color: white !important;
}

.refresh-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: var(--bg-tertiary);
  transform: rotate(180deg);
}

/* Light theme refresh button */
[data-theme="light"] .refresh-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .refresh-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-accent);
}

/* Enhanced Content Tabs */
.content-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

/* Light theme content tabs */
[data-theme="light"] .content-tabs {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "ModernFlow", cursive;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn.active {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

/* Enhanced Forms */
.upload-form {
  animation: slideInUp 0.5s ease;
}

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

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

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
  /* Additional select styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  color-scheme: dark;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: var(--bg-tertiary);
}

/* Light theme form inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .form-group select {
  color-scheme: light;
  background-color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 1);
}

/* Enhanced select dropdown styling - More comprehensive approach */
.form-group select {
  cursor: pointer;
  color-scheme: dark;
}

.form-group select option {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
  padding: 8px 12px !important;
}

.form-group select option:hover {
  background-color: #2a2a2a !important;
  color: #667eea !important;
}

.form-group select option:checked {
  background-color: #667eea !important;
  color: white !important;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* Character Counter */
.character-counter {
  text-align: right;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Form Options */
.form-options {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

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

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--text-accent);
  border-color: var(--text-accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 12px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.password-field {
  margin-bottom: 20px;
}

.password-field input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 15px;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

/* Light theme password field input */
[data-theme="light"] .password-field input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .password-field input:focus {
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 1);
}

/* Enhanced File Drop Zone */
.file-drop-zone {
  position: relative;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
  cursor: pointer;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
  border-color: var(--text-accent);
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.02);
}

/* Light theme file drop zone */
[data-theme="light"] .file-drop-zone {
  background: rgba(255, 255, 255, 0.6);
  border: 2px dashed var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .file-drop-zone:hover,
[data-theme="light"] .file-drop-zone.dragover {
  background: rgba(90, 103, 216, 0.1);
  border-color: var(--text-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.file-drop-zone input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-zone-content {
  pointer-events: none;
}

.drop-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.drop-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.browse-link {
  color: var(--text-accent);
  font-weight: 500;
  text-decoration: underline;
}

.drop-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* File Preview */
.file-preview {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 15px;
  position: relative;
}

/* Light theme file preview */
[data-theme="light"] .file-preview {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.remove-file {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--error-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 0.8rem;
}

/* URL Preview */
.url-preview {
  margin-top: 10px;
  padding: 15px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Light theme URL preview */
[data-theme="light"] .url-preview {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preview-loading {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
}

/* Enhanced Submit Buttons */
.submit-btn {
  width: 100%;
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "ModernFlow", cursive;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-left: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Upload Progress */
.upload-progress {
  margin-top: 15px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  display: block;
}

.upload-section h2 {
  font-family: "ModernFlow", cursive;
  font-size: 2rem;
  margin-bottom: 25px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
}

/* Content Tabs */
.content-tabs {
  display: flex;
  margin-bottom: 25px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 4px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: #888;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-1px);
}

.tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Light theme tab button hover */
[data-theme="light"] .tab-btn:hover:not(.active) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Forms */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.file-info {
  margin-top: 8px;
}

.file-info p {
  font-size: 0.9rem;
  color: #888;
}

/* Buttons */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Uploads Section */
.uploads-section {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

/* Light theme uploads section */
[data-theme="light"] .uploads-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px var(--shadow-color);
}

.uploads-section h2 {
  font-family: "ModernFlow", cursive;
  font-size: 2rem;
  margin-bottom: 25px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
}

.uploads-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Upload Cards */
.upload-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.upload-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Light theme upload cards */
[data-theme="light"] .upload-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
}

[data-theme="light"] .upload-card:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--text-accent);
}

.upload-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.upload-type {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.upload-type.text {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.upload-type.file {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
}

.upload-type.link {
  background: rgba(156, 39, 176, 0.2);
  color: #9c27b0;
}

.upload-date {
  font-size: 0.9rem;
  color: #888;
}

.upload-content h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.upload-content p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
}

.upload-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.copy-link-btn,
.view-btn,
.download-btn,
.visit-btn,
.back-btn {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.copy-link-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.copy-link-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Light theme copy link button */
[data-theme="light"] .copy-link-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

[data-theme="light"] .copy-link-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-accent);
}

.view-btn,
.download-btn,
.visit-btn {
  background: #667eea;
  color: white;
}

.view-btn:hover,
.download-btn:hover,
.visit-btn:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

.back-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Light theme back button */
[data-theme="light"] .back-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

[data-theme="light"] .back-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-accent);
}

.no-uploads {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

/* View Content Page */
.view-content {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Light theme content wrapper */
[data-theme="light"] .content-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px var(--shadow-color);
}

.content-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light theme content header */
[data-theme="light"] .content-header {
  border-bottom: 1px solid var(--border-color);
}

.content-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.content-title {
  font-size: 2rem;
  color: #fff;
  font-weight: 600;
}

.view-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #ccc;
}

/* Light theme view count */
[data-theme="light"] .view-count {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.content-body {
  margin-bottom: 30px;
}

.content-description {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.content-description h3,
.content-description h4 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.content-description p {
  color: #e0e0e0;
  line-height: 1.6;
  margin: 0;
}

.text-content pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
}

/* Light theme text content */
[data-theme="light"] .text-content pre {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

.file-info {
  margin-bottom: 20px;
}

.file-info h3 {
  color: #fff;
  margin-bottom: 8px;
}

.image-preview {
  margin: 20px 0;
}

.image-preview img {
  max-width: 100%;
  max-height: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.file-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

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

.link-info h3 {
  margin-bottom: 15px;
}

.link-info h3 a {
  color: #667eea;
  text-decoration: none;
  word-break: break-all;
}

.link-info h3 a:hover {
  text-decoration: underline;
}

.link-description {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  color: #ccc;
  line-height: 1.6;
}

/* Light theme link description */
[data-theme="light"] .link-description {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.link-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.content-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light theme content footer */
[data-theme="light"] .content-footer {
  border-top: 1px solid var(--border-color);
}

.share-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Status Messages */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(400px);
  transition: all 0.3s ease;
  max-width: 300px;
}

.status-message.show {
  transform: translateX(0);
}

.status-message.success {
  background: linear-gradient(135deg, #4caf50, #45a049);
}

.status-message.error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-overlay.show {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .logo {
    font-size: 2.5rem;
  }

  .upload-section,
  .uploads-section {
    padding: 20px;
  }

  .content-wrapper {
    padding: 25px;
  }

  .content-tabs {
    flex-direction: column;
  }

  .tab-btn {
    margin-bottom: 2px;
  }

  .share-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .file-actions,
  .link-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .upload-actions {
    flex-direction: column;
  }

  .copy-link-btn,
  .view-btn {
    width: 100%;
    text-align: center;
  }

  .status-message {
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }

  .status-message.show {
    transform: translateY(0);
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Light theme scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Share Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  border-radius: 16px;
  padding: 0;
  max-width: 480px;
  width: 90%;
  max-height: 100vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

/* Light theme modal */
[data-theme="light"] .modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  text-align: center;
  padding: 30px 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light theme modal header */
[data-theme="light"] .modal-header {
  border-bottom: 1px solid var(--border-color);
}

.modal-icon {
  margin-bottom: 15px;
}

.modal-header h3 {
  font-family: "ModernFlow", cursive;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
}

.modal-header p {
  color: #888;
  font-size: 0.95rem;
}

.modal-body {
  padding: 25px 30px;
}

.share-url-container {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light theme share URL container */
[data-theme="light"] .share-url-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.share-url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e0e0e0;
  padding: 12px 15px;
  font-size: 0.9rem;
  outline: none;
  font-family: "Courier New", monospace;
}

/* Light theme share URL input */
[data-theme="light"] .share-url-input {
  color: var(--text-primary);
}

.copy-url-btn {
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #667eea;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.copy-url-btn:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.modal-actions {
  padding: 20px 30px 30px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-actions .btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Light theme secondary buttons */
[data-theme="light"] .btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

[data-theme="light"] .btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-accent);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: none;
  }

  .modal-header,
  .modal-body,
  .modal-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .share-url-container {
    flex-direction: column;
  }

  .copy-url-btn {
    align-self: flex-start;
  }
}

/* Uploads Loading State */
.uploads-loading {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.uploads-loading .spinner {
  margin: 0 auto 15px;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 20px;
  padding: 20px;
}

.load-more-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-left: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Upload Card Animation */
.upload-card {
  animation: slideInUp 0.3s ease;
}

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

/* Enhanced Modal Styles */
.qr-section {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.qr-code-container {
  display: inline-block;
  padding: 15px;
  background: white;
  border-radius: 8px;
  margin-bottom: 10px;
}

.qr-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.share-options {
  margin-top: 20px;
}

.share-options h4 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 1rem;
}

.social-share {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.social-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.social-btn:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.social-icon {
  font-size: 1.1rem;
}

.btn-accent {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #f093fb 20%, #f5576c 80%);
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

/* Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px 20px;
  min-width: 300px;
  backdrop-filter: blur(10px);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.success {
  border-color: var(--success-color);
  background: rgba(76, 175, 80, 0.1);
}

.notification.error {
  border-color: var(--error-color);
  background: rgba(244, 67, 54, 0.1);
}

.notification.warning {
  border-color: var(--warning-color);
  background: rgba(255, 152, 0, 0.1);
}

/* Analytics Modal */
.analytics-modal {
  max-width: 600px;
}

.analytics-modal .modal-header {
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.analytics-content {
  padding: 20px 30px 30px;
}

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

.analytics-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.analytics-card h4 {
  color: var(--text-accent);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.content-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-type-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .nav-controls {
    gap: 10px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .quick-stats {
    gap: 20px;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .nav-container {
    padding: 0 15px;
  }

  .nav-controls {
    flex-direction: column;
    gap: 8px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-features {
    justify-content: center;
    gap: 10px;
  }

  .quick-stats {
    flex-direction: column;
    gap: 15px;
    padding: 20px 15px;
  }

  .stat-item {
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
  }

  .section-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-container {
    order: 1;
  }

  .filter-container {
    order: 2;
    justify-content: space-between;
  }

  .refresh-btn {
    order: 3;
    align-self: center;
  }

  .social-share {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .fab {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .notification-container {
    left: 10px;
    right: 10px;
  }

  .notification {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .upload-section,
  .uploads-section {
    padding: 20px;
  }

  .content-tabs {
    flex-direction: column;
    gap: 2px;
  }

  .tab-btn {
    padding: 15px;
    border-radius: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-options {
    flex-direction: column;
    gap: 10px;
  }
}

/* Dark/Light Theme Animations */
* {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* Enhanced View Page Styles */
.share-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.share-section h3 {
  color: var(--text-accent);
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-align: center;
}

.share-url-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 4px;
}

.share-url-container input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 10px 12px;
  font-family: monospace;
  font-size: 0.9rem;
  outline: none;
}

.copy-btn {
  background: var(--text-accent);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--text-accent);
  filter: brightness(1.1);
  transform: scale(1.05);
}

.social-share-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.social-share-buttons .social-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  text-align: center;
}

.social-share-buttons .social-btn:hover {
  background: var(--text-accent);
  color: white;
  transform: translateY(-1px);
}

.qr-section {
  text-align: center;
}

.qr-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 15px;
}

.qr-toggle:hover {
  background: var(--text-accent);
  color: white;
}

.qr-container {
  background: white;
  display: inline-block;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-color);
  margin-top: 15px;
}

.qr-container #qr-code {
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-container p {
  margin-top: 15px;
  color: #666;
  font-size: 0.9rem;
  text-align: center;
}

/* Enhanced Content Display */
.content-wrapper {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px var(--shadow-color);
  backdrop-filter: blur(10px);
}

.content-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.content-meta span {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
}

.content-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-family: "ModernFlow", cursive;
  line-height: 1.3;
}

/* Enhanced Notification Styles */
.notification {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px 20px;
  min-width: 300px;
  backdrop-filter: blur(10px);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.success {
  border-color: var(--success-color);
  background: rgba(76, 175, 80, 0.1);
}

.notification.error {
  border-color: var(--error-color);
  background: rgba(244, 67, 54, 0.1);
}

.notification.warning {
  border-color: var(--warning-color);
  background: rgba(255, 152, 0, 0.1);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

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

.notification-message {
  flex: 1;
  color: var(--text-primary);
}

.notification-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  color: var(--text-primary);
}

/* Enhanced Upload Card Styles */
.upload-card .upload-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.upload-type-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.upload-category {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.upload-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: column;
  align-items: flex-end;
}

.protected-badge,
.expiry-badge {
  font-size: 0.9rem;
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  cursor: help;
}

.protected-badge {
  color: var(--warning-color);
}

.expiry-badge {
  color: var(--text-secondary);
}

.view-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* Password Field Styles */
.password-field {
  margin-top: 10px;
}

.password-field input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
}

.password-field input:focus {
  outline: none;
  border-color: var(--text-accent);
}

/* Enhanced Search and Filter Styles */
.section-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.search-container {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.search-container:focus-within {
  border-color: var(--text-accent);
}

.search-input {
  background: transparent;
  border: none;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
  width: 200px;
}

.search-input:focus {
  outline: none;
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-btn {
  background: transparent;
  border: none;
  padding: 10px 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-btn:hover {
  color: var(--text-primary);
}

.filter-container {
  display: flex;
  gap: 10px;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  /* Enhanced select styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  padding-right: 32px;
  color-scheme: dark;
}

.filter-select:focus {
  outline: none;
  border-color: var(--text-accent);
}

.filter-select option {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
  padding: 6px 8px !important;
}

.filter-select option:hover {
  background-color: #2a2a2a !important;
  color: #667eea !important;
}

.filter-select option:checked {
  background-color: #667eea !important;
  color: white !important;
}

.refresh-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-accent);
}

.refresh-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
}

/* Enhanced Checkbox Styles */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  margin-bottom: 10px;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--text-accent);
  border-color: var(--text-accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
  .section-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-container {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .filter-container {
    width: 100%;
    justify-content: space-between;
  }

  .filter-select {
    flex: 1;
  }

  .upload-meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .upload-type-section {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
}

/* Animation for filtered results */
@keyframes filterFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.upload-card.filtered-in {
  animation: filterFadeIn 0.3s ease;
}

/* QR Code Section Styles */
.qr-section {
  text-align: center;
  margin: 20px 0;
}

.qr-code-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.qr-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 2px dashed var(--border-color);
}

/* Light theme QR fallback */
[data-theme="light"] .qr-fallback {
  background: rgba(255, 255, 255, 0.8);
  border: 2px dashed var(--border-color);
}

.qr-placeholder {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.7;
}

.qr-text {
  margin: 10px 0 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

#qr-canvas {
  border-radius: 8px;
  background: white;
  padding: 4px;
}
