/* ================================
   ADMIN - STYLES GLOBAUX
   Fichier partage par toutes les pages admin
   ================================ */

.admin-page { min-height: 100vh; background: #080b1a; }

/* Hero */
.admin-hero {
    background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #0f151f 100%);
    color: white; padding: 3rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.admin-hero::before {
    content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.12) 0%, transparent 70%); border-radius: 50%;
}
.admin-hero::after {
    content: ''; position: absolute; bottom: -30%; left: -5%; width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(37, 244, 238, 0.08) 0%, transparent 70%); border-radius: 50%;
}
.admin-hero-content { position: relative; z-index: 1; }
.admin-hero-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--secondary-color); margin-bottom: 0.5rem; font-weight: 600;
}
.admin-hero h1 { font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 900; color: white; }

/* Navigation */
.admin-nav {
    display: flex; gap: 0.4rem; padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 2rem; flex-wrap: wrap;
}
.admin-nav a {
    padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; font-size: 0.82rem;
    font-weight: 500; color: rgba(255,255,255,0.5); transition: all 0.2s; border: 1px solid transparent;
}
.admin-nav a:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }
.admin-nav a.active {
    background: rgba(255, 0, 80, 0.12); border-color: rgba(255, 0, 80, 0.25);
    color: #ff3370; font-weight: 600;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem; border-radius: 12px; margin-bottom: 1.5rem;
    font-weight: 500; font-size: 0.9rem; word-break: break-all;
}
.alert-success { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); color: #34d399; }
.alert-error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); color: #f87171; }

/* Panels */
.admin-panel {
    background: linear-gradient(145deg, #12162e, #1a1f3a); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; padding: 2rem; margin-bottom: 2rem;
}
.admin-panel-title {
    font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700;
    color: white; margin-bottom: 1.5rem;
}

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.stat-card {
    background: linear-gradient(145deg, #12162e, #1a1f3a); border: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem; border-radius: 16px; transition: all 0.3s;
}
.stat-card:hover { border-color: rgba(255, 0, 80, 0.2); transform: translateY(-3px); }
.stat-card-label {
    color: rgba(255,255,255,0.4); font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 0.5rem; font-weight: 600;
}
.stat-card-value {
    font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; }
.form-group { flex: 1; min-width: 150px; }
.form-full { grid-column: 1 / -1; }
.form-label {
    display: block; font-weight: 600; color: rgba(255,255,255,0.5); font-size: 0.75rem;
    margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input, .form-select {
    width: 100%; padding: 0.7rem 1rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
    font-size: 0.9rem; background: rgba(255,255,255,0.04); color: white; transition: border-color 0.2s;
    font-family: inherit;
}
.form-input:focus, .form-select:focus { outline: none; border-color: rgba(255, 0, 80, 0.4); }
.form-input::placeholder { color: rgba(255,255,255,0.25); }
.form-select option { background: #1a1f3a; color: white; }

/* Buttons */
.btn-primary {
    padding: 0.7rem 1.8rem; background: linear-gradient(135deg, var(--primary-color), #FF1A80);
    border: none; border-radius: 10px; color: white; font-weight: 700; cursor: pointer; font-size: 0.9rem;
    transition: all 0.3s; box-shadow: 0 4px 15px rgba(255, 0, 80, 0.2); white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 0, 80, 0.35); }

/* Tables */
.table-wrap {
    overflow-x: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 3rem; background: linear-gradient(145deg, #12162e, #1a1f3a);
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead th {
    padding: 1rem 1.2rem; text-align: left; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255,255,255,0.35); font-weight: 600;
    background: rgba(0,0,0,0.15); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-table tbody tr { border-top: 1px solid rgba(255,255,255,0.04); transition: background 0.15s; }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.admin-table td { padding: 0.85rem 1.2rem; vertical-align: middle; color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.admin-table .td-bold { color: white; font-weight: 600; }
.admin-table .td-mono { font-family: 'Courier New', monospace; color: var(--secondary-color); font-weight: 600; letter-spacing: 0.5px; font-size: 0.8rem; }

/* Badges */
.badge {
    display: inline-block; padding: 0.2rem 0.55rem; border-radius: 5px; font-size: 0.68rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-green { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-red { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-orange { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-purple { background: rgba(99, 102, 241, 0.12); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.2); }
.badge-pink { background: rgba(255, 0, 80, 0.12); color: #ff3370; border: 1px solid rgba(255, 0, 80, 0.2); }

/* Action buttons */
.btn-actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.btn-action {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    padding: 0.35rem 0.55rem; border-radius: 7px; font-size: 0.75rem; cursor: pointer;
    transition: all 0.2s; color: white; text-decoration: none; display: inline-flex; align-items: center;
}
.btn-action:hover { background: rgba(255,255,255,0.08); }
.btn-action.warn { border-color: rgba(245,158,11,0.25); color: #fbbf24; }
.btn-action.info { border-color: rgba(99,102,241,0.25); color: #818cf8; }
.btn-action.danger { border-color: rgba(239,68,68,0.25); color: #f87171; }
.btn-action.success { border-color: rgba(16,185,129,0.25); color: #34d399; }
.btn-action.pink { border-color: rgba(255,0,80,0.25); color: #ff3370; }

/* Search bar */
.admin-search { display: flex; gap: 0.5rem; margin-bottom: 2rem; max-width: 450px; }
.admin-search .form-input { flex: 1; }

/* Avatar */
.avatar-sm {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), #FF1A80);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.7rem; font-weight: 700; overflow: hidden;
}
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg {
    width: 70px; height: 70px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), #FF1A80);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem; font-weight: 700; overflow: hidden;
}
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

/* User detail card */
.user-card {
    background: linear-gradient(145deg, #12162e, #1a1f3a); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; padding: 2rem; margin-bottom: 2rem;
}
.user-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.user-card-field-label {
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: rgba(255,255,255,0.35); margin-bottom: 0.3rem; font-weight: 600;
}
.user-card-field-value { font-weight: 500; color: white; font-size: 0.92rem; }

/* Pagination */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-bottom: 3rem; }
.pagination a {
    padding: 0.45rem 0.85rem; border-radius: 8px; text-decoration: none; font-size: 0.82rem;
    color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s;
}
.pagination a:hover { color: white; border-color: rgba(255,255,255,0.2); }
.pagination a.active {
    background: linear-gradient(135deg, var(--primary-color), #FF1A80); color: white; border-color: transparent;
}

/* Review card */
.review-card {
    background: linear-gradient(145deg, #12162e, #1a1f3a); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 1.5rem; transition: all 0.2s;
}
.review-card:hover { border-color: rgba(255,255,255,0.1); }
.review-stars { color: #FFD700; font-size: 0.9rem; letter-spacing: 1px; }
.review-stars .empty { color: rgba(255,255,255,0.15); }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon {
    width: 80px; height: 80px; margin: 0 auto 1.2rem; border-radius: 50%;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.empty-state p { color: rgba(255,255,255,0.35); font-size: 0.95rem; }

/* Gradient text */
.gradient-value {
    font-weight: 800; font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Responsive */
@media (max-width: 700px) {
    .admin-hero h1 { font-size: 1.8rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .form-group { min-width: 100%; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
