/* Custom Admin Styles - Design moderne inspiré de Stripe */

/* Variables de couleurs modernes */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Amélioration de la sidebar */
.unfold-sidebar {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-right: 1px solid #e2e8f0;
}

/* Style des éléments de navigation */
.unfold-sidebar-nav-item {
  border-radius: 8px;
  margin: 4px 8px;
  transition: var(--transition);
}

.unfold-sidebar-nav-item:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(2px);
}

.unfold-sidebar-nav-item.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--card-shadow);
}

/* Amélioration des cartes */
.unfold-card {
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  background: white;
}

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

/* Header moderne */
.unfold-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
}

/* Boutons modernes */
.unfold-btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.unfold-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--hover-shadow);
}

/* Tableaux modernes */
.unfold-table {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.unfold-table th {
  background: #f8fafc;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #64748b;
}

.unfold-table tr:hover {
  background: #f8fafc;
  transition: var(--transition);
}

/* Formulaires modernes */
.unfold-form-field {
  margin-bottom: 24px;
}

.unfold-form-field input,
.unfold-form-field select,
.unfold-form-field textarea {
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  padding: 12px 16px;
  transition: var(--transition);
}

.unfold-form-field input:focus,
.unfold-form-field select:focus,
.unfold-form-field textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* Stats cards - style Stripe */
.stats-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.stats-card:hover {
  box-shadow: var(--hover-shadow);
}

.stats-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.stats-label {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

.stats-change {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 8px;
  display: inline-block;
}

.stats-change.positive {
  color: #059669;
  background: #d1fae5;
}

.stats-change.negative {
  color: #dc2626;
  background: #fee2e2;
}

/* Icônes Material Design améliorées */
.material-icons {
  vertical-align: middle;
  margin-right: 8px;
  font-size: 18px;
}

/* Animation d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.unfold-main-content {
  animation: fadeInUp 0.5s ease-out;
}

/* Badge de statut */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.active {
  background: #d1fae5;
  color: #059669;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #dc2626;
}

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

/* Responsive amélioré */
@media (max-width: 768px) {
  .unfold-sidebar {
    transform: translateX(-100%);
    transition: var(--transition);
  }

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .unfold-card {
    background: #1e293b;
    border-color: #334155;
  }

  .unfold-table th {
    background: #334155;
    color: #cbd5e1;
  }
}
