/** * Styles unifiés pour le centre d'administration * Design moderne et cohérent avec le profil utilisateur */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); /* Variables CSS identiques au profil */ :root { --background: 0 0% 100%; --foreground: 222.2 84% 4.9%; --card: 0 0% 100%; --card-foreground: 222.2 84% 4.9%; --popover: 0 0% 100%; --popover-foreground: 222.2 84% 4.9%; --primary: 222.2 47.4% 11.2%; --primary-foreground: 210 40% 98%; --secondary: 210 40% 96.1%; --secondary-foreground: 222.2 47.4% 11.2%; --muted: 210 40% 96.1%; --muted-foreground: 215.4 16.3% 46.9%; --accent: 210 40% 96.1%; --accent-foreground: 222.2 47.4% 11.2%; --destructive: 0 84.2% 60.2%; --destructive-foreground: 210 40% 98%; --border: 214.3 31.8% 91.4%; --input: 214.3 31.8% 91.4%; --ring: 222.2 84% 4.9%; --radius: 0.5rem; } .dark { --background: 222.2 84% 4.9%; --foreground: 210 40% 98%; --card: 222.2 84% 4.9%; --card-foreground: 210 40% 98%; --popover: 222.2 84% 4.9%; --popover-foreground: 210 40% 98%; --primary: 210 40% 98%; --primary-foreground: 222.2 47.4% 11.2%; --secondary: 217.2 32.6% 17.5%; --secondary-foreground: 210 40% 98%; --muted: 217.2 32.6% 17.5%; --muted-foreground: 215 20.2% 65.1%; --accent: 217.2 32.6% 17.5%; --accent-foreground: 210 40% 98%; --destructive: 0 62.8% 30.6%; --destructive-foreground: 210 40% 98%; --border: 217.2 32.6% 17.5%; --input: 217.2 32.6% 17.5%; --ring: 212.7 26.8% 83.9%; } * { box-sizing: border-box; } body.admin-page { font-family: 'Inter', sans-serif; background-color: hsl(var(--background)); color: hsl(var(--foreground)); transition: background-color 0.3s ease, color 0.3s ease; margin: 0; padding: 0; min-height: 100vh; } /* Backdrop avec blur */ .backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 1; } /* Container principal */ .admin-container { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; padding: 2rem; min-height: 100vh; } /* Header de l'admin */ .admin-header { background: hsl(var(--card)); border-radius: 20px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); border: 1px solid hsl(var(--border)); } .admin-header h1 { font-size: 2rem; font-weight: 700; color: hsl(var(--foreground)); margin: 0 0 0.5rem 0; display: flex; align-items: center; gap: 1rem; } .admin-header h1 i { color: hsl(var(--primary)); font-size: 1.75rem; } .admin-header p { color: hsl(var(--muted-foreground)); margin: 0; font-size: 1rem; } /* Grille de cartes */ .admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; } /* Carte admin */ .admin-card { background: hsl(var(--card)); border-radius: 16px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); border: 1px solid hsl(var(--border)); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .admin-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent))); transform: scaleX(0); transition: transform 0.3s ease; } .admin-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); } .admin-card:hover::before { transform: scaleX(1); } .admin-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; } .admin-card-title { font-size: 1.25rem; font-weight: 600; color: hsl(var(--foreground)); margin: 0; display: flex; align-items: center; gap: 0.75rem; } .admin-card-title i { font-size: 1.5rem; color: hsl(var(--primary)); } .admin-card-badge { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; } .admin-card-body { color: hsl(var(--muted-foreground)); line-height: 1.6; } .admin-card-footer { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); display: flex; gap: 0.75rem; } /* Boutons */ .btn-admin { padding: 0.75rem 1.5rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; } .btn-admin-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); } .btn-admin-primary:hover { background: hsl(var(--primary) / 0.9); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .btn-admin-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); } .btn-admin-secondary:hover { background: hsl(var(--accent)); transform: translateY(-2px); } .btn-admin-danger { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); } .btn-admin-danger:hover { background: hsl(var(--destructive) / 0.9); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); } /* Tableaux */ .admin-table-container { background: hsl(var(--card)); border-radius: 16px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); border: 1px solid hsl(var(--border)); overflow: hidden; } .admin-table { width: 100%; border-collapse: collapse; } .admin-table thead tr { background: hsl(var(--muted) / 0.5); border-bottom: 2px solid hsl(var(--border)); } .admin-table th { padding: 1rem; text-align: left; font-weight: 600; color: hsl(var(--foreground)); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; } .admin-table td { padding: 1rem; border-bottom: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); } .admin-table tbody tr { transition: background-color 0.2s ease; } .admin-table tbody tr:hover { background: hsl(var(--muted) / 0.3); } /* Formulaires */ .admin-form-group { margin-bottom: 1.5rem; } .admin-form-label { display: block; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.5rem; font-size: 0.95rem; } .admin-form-input, .admin-form-select, .admin-form-textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--background)); color: hsl(var(--foreground)); font-size: 0.95rem; transition: all 0.2s ease; } .admin-form-input:focus, .admin-form-select:focus, .admin-form-textarea:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1); } /* Stats cards */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; } .stat-card { background: hsl(var(--card)); border-radius: 16px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); border: 1px solid hsl(var(--border)); position: relative; overflow: hidden; } .stat-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; } .stat-card-icon.primary { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); } .stat-card-icon.success { background: rgba(16, 185, 129, 0.1); color: #10b981; } .stat-card-icon.warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; } .stat-card-icon.danger { background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive)); } .stat-card-value { font-size: 2rem; font-weight: 700; color: hsl(var(--foreground)); margin: 0.5rem 0; } .stat-card-label { color: hsl(var(--muted-foreground)); font-size: 0.875rem; font-weight: 500; } /* Badges */ .badge-admin { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.75rem; border-radius: 12px; font-size: 0.8rem; font-weight: 600; } .badge-admin.success { background: rgba(16, 185, 129, 0.1); color: #10b981; } .badge-admin.warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; } .badge-admin.danger { background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive)); } .badge-admin.info { background: rgba(59, 130, 246, 0.1); color: #3b82f6; } /* Responsive */ @media (max-width: 768px) { .admin-container { padding: 1rem; } .admin-header h1 { font-size: 1.5rem; } .admin-grid, .stats-grid { grid-template-columns: 1fr; } .admin-card-footer { flex-direction: column; } } /* Dark mode specific */ .dark .admin-card, .dark .admin-table-container { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); } .dark .admin-table thead tr { background: hsl(var(--muted) / 0.3); } .dark .stat-card { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); }