/*			/assets/css/Adm/style_admin.css			*/
:root { --bg-dark: #0f172a; --sidebar-color: #1e293b; --accent: #deff9a; --text-light: #f1f5f9; --warning: #fbbf24; --danger: #ef4444; }
body { margin: 0; font-family: 'Segoe UI', sans-serif; background-color: var(--bg-dark); color: var(--text-light); }
.dashboard-wrapper { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background-color: var(--sidebar-color); padding: 20px; border-right: 1px solid #334155; }
.sidebar .logo { font-size: 1.5rem; font-weight: bold; color: var(--accent); margin-bottom: 40px; text-align: center; }
.sidebar ul { list-style: none; padding: 0; }
.sidebar ul li { margin-bottom: 15px; }
.sidebar ul li a { color: #94a3b8; text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; transition: 0.3s; }
.sidebar ul li a:hover, .sidebar ul li a.active { background: #334155; color: var(--accent); }
.sidebar ul li a.tab-btn-crown { color: #6366f1; }
.sidebar ul li a.tab-btn-crown:hover { color: var(--accent); }
.sidebar ul li a.link-logout { color: var(--danger); }
.sidebar ul li a.link-logout:hover { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.content { flex: 1; padding: 40px; } 
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.admin-section { background: var(--sidebar-color); padding: 30px; border-radius: 12px; border: 1px solid #334155; margin-bottom: 25px; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--sidebar-color); padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 20px; border: 1px solid #334155; }
.stat-card i { font-size: 2rem; color: var(--accent); }
.stat-card.warning { border-color: var(--warning); }
.stat-card.warning i { color: var(--warning); }
.stat-card .number { font-size: 1.8rem; font-weight: bold; display: block; }
.stat-card .label { color: #94a3b8; font-size: 0.9rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #94a3b8; font-weight: 500; }
input, select, textarea { background: #0f172a; border: 1px solid #334155; color: white; padding: 12px; border-radius: 8px; font-family: inherit; box-sizing: border-box; }
input:focus, select:focus, textarea:focus { border-color: #3b82f6; outline: none; }
input[type="number"] { width: 100px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; color: white; margin-top: 15px; }
.checkbox-label input { width: 18px; height: 18px; cursor: pointer; margin: 0; }
.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: rgba(34, 197, 94, 0.2); border: 1px solid #22c55e; color: #4ade80; }
.alert-error { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #f87171; }
.table-container { background: var(--sidebar-color); border-radius: 12px; overflow: hidden; border: 1px solid #334155; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 15px; border-bottom: 1px solid #334155; }
th { background: rgba(0,0,0,0.2); color: var(--accent); font-weight: bold; }
tr:last-child td { border-bottom: none; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; display: inline-block; }
.badge-super { background: #deff9a; color: #000; }
.badge-admin { background: #3b82f6; color: #fff; }
.badge-parent { background: #64748b; color: #fff; }
.action-buttons { display: flex; gap: 20px; align-items: center; margin-top: 20px; }
.buttons-container { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.btn-main { background-color: var(--accent); color: #0f172a; padding: 12px 25px; border-radius: 20px; text-decoration: none; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.2s, background-color 0.2s; border: none; cursor: pointer; }
.btn-main:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-secondary { background-color: transparent; color: var(--text-light); padding: 12px 25px; border-radius: 20px; text-decoration: none; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #334155; transition: all 0.2s; cursor: pointer; }
.btn-secondary:hover { background-color: #334155; color: var(--accent); border-color: var(--accent); }
.btn-save { background: #3b82f6; color: white; border: none; padding: 12px 25px; border-radius: 20px; cursor: pointer; font-weight: bold; display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.2s; }
.btn-save:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); color: white; border: none; padding: 12px 24px; border-radius: 20px; cursor: pointer; font-weight: bold; transition: opacity 0.2s; }
.btn-danger:hover { opacity: 0.8; }
.admin-layout { display: flex; width: 100%; gap: 25px; margin-top: 20px; align-items: flex-start; }
.tabs-nav { width: 220px; display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.tab-btn { background: #1e293b; padding: 14px 18px; border-radius: 10px; cursor: pointer; border: 1px solid #334155; display: flex; align-items: center; gap: 12px; color: #94a3b8; font-weight: 500; transition: all 0.2s ease; }
.tab-btn i { width: 20px; text-align: center; font-size: 1.1rem; }
.tab-btn:hover { background: #334155; color: var(--accent); border-color: #475569; }
.tab-btn.active { background: #3b82f6; color: white; border-color: #3b82f6; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.workspace { flex: 1; background: #0f172a; min-width: 0; }
.btn-ai { background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); color: white; border: none; padding: 12px 25px; border-radius: 20px; cursor: pointer; font-weight: bold; transition: transform 0.2s, box-shadow 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-ai:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4); }
.separator { border: 0; height: 1px; background: #334155; margin: 20px 0; }
.famille-row { background: var(--sidebar-color); border-radius: 12px; padding: 20px; margin-bottom: 25px; border: 1px solid #334155; }
.famille-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; padding-bottom: 10px; margin-bottom: 15px; }
.famille-title { font-size: 1.2rem; font-weight: bold; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.famille-count { font-size: 0.8rem; color: #64748b; background: #0f172a; padding: 4px 10px; border-radius: 20px; }
.themes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.theme-card { background: #0f172a; border: 1px solid #334155; border-radius: 8px; padding: 15px; text-align: center; transition: transform 0.2s, border-color 0.2s; }
.theme-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.theme-name { color: white; font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.theme-meta { font-size: 0.75rem; color: #64748b; margin-bottom: 12px; }
.theme-actions { display: flex; gap: 8px; justify-content: center; }
.btn-mini { padding: 6px 10px; font-size: 0.8rem; border-radius: 6px; }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.8); z-index: 999; justify-content: center; align-items: center; }
.modal-content { width: 100%; max-width: 500px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5); }
.input-full { width: 100%; }
.text-muted { color: #94a3b8; }
.text-empty { color: #475569; font-style: italic; font-size: 0.9rem; padding: 10px; }

/* Styles additionnels spécifiques à la Matrice des Éléments d'Avatars */
.matrix-container { padding: 20px; }
.matrix-title { color: #fff; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.matrix-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--sidebar-color); border-radius: 12px; overflow: hidden; border: 1px solid #334155; }
.matrix-table th { background: rgba(0,0,0,0.3); color: var(--accent); padding: 14px; font-weight: 600; text-align: center; font-size: 0.95rem; border-bottom: 1px solid #334155; border-right: 1px solid #334155; }
.matrix-table th:last-child { border-right: none; }
.matrix-table td { padding: 12px; border-bottom: 1px solid #334155; border-right: 1px solid #334155; vertical-align: top; min-width: 150px; }
.matrix-table td:last-child { border-right: none; }
.matrix-table tr:last-child td { border-bottom: none; }
.slot-header { background: rgba(0,0,0,0.1); font-weight: bold; color: var(--accent); min-width: 180px !important; }
.slot-info { display: block; font-size: 0.75rem; color: #94a3b8; font-weight: normal; margin-top: 4px; }
.item-badge { background: #0f172a; border: 1px solid #334155; border-radius: 6px; padding: 6px 8px; margin-bottom: 6px; font-size: 0.85rem; transition: all 0.2s ease; }
.item-badge:hover { border-color: var(--accent); background: #1e293b; }
.item-name { color: white; font-weight: 600; display: block; }
.item-details { display: flex; justify-content: space-between; font-size: 0.75rem; margin-top: 3px; }
.item-price { color: #10b981; font-weight: bold; }
.item-id { color: #64748b; }
.no-item { color: #475569; font-style: italic; font-size: 0.85rem; text-align: center; display: block; padding: 10px 0; }