/* ============================================
   IXWHA ADMIN PANEL V3 - STYLES MODERNES
   ============================================ */

:root {
  /* Couleurs principales */
  --primary: #7047EB;
  --primary-light: #9173FF;
  --primary-dark: #4B22DC;
  --secondary: #6C757D;
  --success: #38CB89;
  --warning: #FFBB38;
  --danger: #FF5A5A;
  --info: #2196F3;
  
  /* Couleurs de texte */
  --text-primary: #1F1F1F;
  --text-secondary: #6B7280;
  --text-light: #FFFFFF;
  
  /* Couleurs de fond */
  --bg-primary: #FAFBFF;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F9FAFB;
  --bg-dark: #1A1A1D;
  
  /* Bordures */
  --border-color: #E5E7EB;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  
  /* Ombres */
  --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);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  /* Sidebar */
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #F5F5F5;
    --text-secondary: #9CA3AF;
    --bg-primary: #0F0F11;
    --bg-secondary: #1A1A1D;
    --bg-tertiary: #252529;
    --border-color: #2A2A2E;
  }
}

/* ============================================
   RESET & BASE
   ============================================ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   SIDEBAR V3
   ============================================ */

.admin-sidebar-v3 {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

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

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-text {
  font-size: 1.25rem;
}

.version-badge {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.sidebar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.sidebar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-item:hover {
  background: var(--bg-tertiary);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(112, 71, 235, 0.1) 0%, transparent 100%);
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active .nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.nav-item.danger {
  color: var(--danger);
}

.nav-item.danger:hover {
  background: rgba(255, 90, 90, 0.1);
}

.nav-icon {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.nav-label {
  flex: 1;
}

.nav-badge {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

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

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  font-size: 0.9rem;
}

.sidebar-link:hover {
  background: var(--bg-tertiary);
  color: var(--primary);
}

/* ============================================
   MAIN CONTENT V3
   ============================================ */

.admin-main-v3 {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: var(--transition);
}

.admin-header-v3 {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.header-left {
  flex: 1;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-search {
  position: relative;
  width: 300px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(112, 71, 235, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}

.header-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

/* ============================================
   ADMIN CONTENT
   ============================================ */

.admin-content {
  padding: 2rem;
}

.admin-section-v3 {
  display: none;
}

.admin-section-v3.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.section-header-v3 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ============================================
   STATS GRID V3
   ============================================ */

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

.stat-card-v3 {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.stat-card-v3:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card-v3.primary {
  border-left: 4px solid var(--primary);
}

.stat-card-v3.success {
  border-left: 4px solid var(--success);
}

.stat-card-v3.info {
  border-left: 4px solid var(--info);
}

.stat-card-v3.warning {
  border-left: 4px solid var(--warning);
}

.stat-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-change {
  font-size: 0.75rem;
  font-weight: 600;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

/* ============================================
   CARDS V3
   ============================================ */

.admin-card-v3 {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.card-action {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.card-action:hover {
  background: var(--bg-tertiary);
}

.card-content {
  padding: 1.5rem;
}

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

.dashboard-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ============================================
   BUTTONS V3
   ============================================ */

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

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

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

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #ff4444;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

/* ============================================
   FORMS V3
   ============================================ */

.form-group-v3 {
  margin-bottom: 1.5rem;
}

.label-v3 {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.input-v3,
.textarea-v3,
.select-v3 {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: inherit;
}

.input-v3:focus,
.textarea-v3:focus,
.select-v3:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(112, 71, 235, 0.1);
  background: var(--bg-secondary);
}

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

.form-row-v3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.input-group-v3 {
  display: flex;
  gap: 0.75rem;
}

.input-group-v3 .input-v3 {
  flex: 1;
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.checkbox-v3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

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

.form-actions-v3 {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================
   UPLOAD ZONE V3
   ============================================ */

.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-tertiary);
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(112, 71, 235, 0.05);
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.upload-zone h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.upload-zone p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

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

.upload-preview {
  margin-top: 1.5rem;
  text-align: center;
}

.upload-preview img {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.upload-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cover-upload-v3 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cover-preview-v3 {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.cover-preview-v3 img {
  width: 100%;
  height: auto;
  display: block;
}

.cover-remove-v3 {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cover-remove-v3:hover {
  background: #ff4444;
  transform: scale(1.1);
}

.cover-upload-options-v3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

/* ============================================
   CATALOGUE V3
   ============================================ */

.catalogue-tabs-v3 {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: -2px;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-badge {
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tab-btn.active .tab-badge {
  background: var(--primary);
  color: white;
}

.catalogue-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(112, 71, 235, 0.1);
}

.catalogue-tab-content {
  display: none;
}

.catalogue-tab-content.active {
  display: block;
}

.manhwa-grid-v3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Cards de manhwa admin */
.manhwa-card-admin {
  transition: var(--transition);
}

.manhwa-card-admin:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.manhwa-card-header-admin {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.manhwa-card-cover-admin {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.manhwa-card-info-admin {
  flex: 1;
  min-width: 0;
}

.manhwa-card-title-admin {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

.manhwa-card-meta-admin {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.manhwa-card-description-admin {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.manhwa-card-form-admin {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin-top: 0.75rem;
}

.manhwa-card-settings-admin {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.manhwa-card-settings-admin .checkbox-v3 {
  margin: 0;
}

.manhwa-card-actions-admin {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Upload de chapitres */
.chapter-upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-tertiary);
}

.chapter-upload-zone:hover {
  border-color: var(--primary);
  background: rgba(112, 71, 235, 0.05);
}

.chapter-images-preview {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.chapter-image-preview-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.chapter-image-preview-item img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  text-align: center;
}

.preview-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.preview-remove:hover {
  background: #ff4444;
  transform: scale(1.1);
}

.modal-large {
  max-width: 900px;
}

/* Upload de chapitres - styles supplémentaires */
.chapter-upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-tertiary);
}

.chapter-upload-zone:hover {
  border-color: var(--primary);
  background: rgba(112, 71, 235, 0.05);
}

.chapter-images-preview {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.chapter-image-preview-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid var(--border-color);
  aspect-ratio: 2/3;
}

.chapter-image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  text-align: center;
}

.preview-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.preview-remove:hover {
  background: #ff4444;
  transform: scale(1.1);
}

.upload-info {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
}

.upload-info h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.upload-info ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.upload-info li {
  margin-bottom: 0.5rem;
}

.info-note {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(112, 71, 235, 0.1);
  border-left: 3px solid var(--primary);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
}

/* ============================================
   MODALS V3
   ============================================ */

.modal-v3 {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.modal-v3.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content-v3 {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

.modal-content-v3.modal-sm {
  max-width: 500px;
}

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

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--danger);
  color: white;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ============================================
   NOTIFICATIONS V3
   ============================================ */

.notification-container-v3 {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
}

.notification-v3 {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.notification-v3.success {
  border-left: 4px solid var(--success);
}

.notification-v3.error {
  border-left: 4px solid var(--danger);
}

.notification-v3.warning {
  border-left: 4px solid var(--warning);
}

.notification-v3.info {
  border-left: 4px solid var(--info);
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */

.loading-state,
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .admin-sidebar-v3 {
    transform: translateX(-100%);
  }

  .admin-sidebar-v3.active {
    transform: translateX(0);
  }

  .admin-main-v3 {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: flex;
  }

  .admin-header-v3 {
    padding: 1rem;
  }

  .header-search {
    display: none;
  }

  .admin-content {
    padding: 1rem;
  }

  .stats-grid-v3 {
    grid-template-columns: 1fr;
  }

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

  .manhwa-grid-v3 {
    grid-template-columns: 1fr;
  }

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

