/* admin.css : Système de Couleurs & Dark Mode 2025 - Modern Redesign */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* --- PALETTE DE COULEURS PREMIUM --- */
    --primary: #7c3aed;
    --primary-bg: rgba(124, 58, 237, 0.15);
    --bs-primary: #7c3aed;
    --bs-primary-rgb: 124, 58, 237;

    --secondary: #a855f7;
    --secondary-bg: rgba(168, 85, 247, 0.15);

    --glass-bg: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
}

[data-bs-theme="dark"] {
    --primary: #a78bfa;
    --primary-bg: rgba(167, 139, 250, 0.2);
    --bs-primary: #a78bfa;
    --bs-primary-rgb: 167, 139, 250;
    --secondary: #c084fc;
    --secondary-bg: rgba(192, 132, 252, 0.2);

    --glass-bg: #18181b;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--bs-body-bg);
}

.tracking-tight {
    letter-spacing: -0.02em;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

/* --- GLASSMORPHISM UTILITIES --- */
.glass-panel {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
}

.glass-nav {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border) !important;
}

/* --- ICON BOXES --- */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-box.primary {
    background-color: var(--primary-bg);
    color: var(--primary);
}

.icon-box.secondary {
    background-color: var(--secondary-bg);
    color: var(--secondary);
}

/* Texte */
.text-primary-custom {
    color: var(--primary) !important;
}

.text-secondary-custom {
    color: var(--secondary) !important;
}

/* Backgrounds */
.bg-primary-custom {
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%) !important;
    color: white !important;
}

.bg-secondary-custom {
    background: var(--secondary-bg) !important;
    color: var(--secondary) !important;
}


/* --- BOUTONS --- */
.btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7e22ce 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary-custom {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-secondary-custom {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    font-weight: 500;
}

.btn-secondary-custom:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-outline-secondary-custom {
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline-secondary-custom:hover {
    background-color: var(--secondary);
    color: #fff;
}

.btn:hover {
    transform: translateY(-1px);
}

/* --- CARTES & SURVOLS --- */
.card {
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-card {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="dark"] .action-card:hover {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4) !important;
}

.action-card:hover .icon-box.primary {
    background-color: var(--primary);
    color: #fff;
}

.action-card:hover .icon-box.secondary {
    background-color: var(--secondary);
    color: #fff;
}

/* Animation loader */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.spinner-icon.spinning {
    animation: spin 1s linear infinite;
}

.help-icon {
    font-size: 0.9em;
    color: var(--primary);
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.help-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* --- TAILWIND/DAISYUI EMULATION --- */
.rounded-3xl {
    border-radius: 1.5rem !important;
}

.rounded-2xl {
    border-radius: 1rem !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
    color: white !important;
}

.text-orange-500 {
    color: #f97316 !important;
}

.bg-orange-500-10 {
    background-color: rgba(249, 115, 22, 0.1) !important;
}

.border-orange-500-20 {
    border-color: rgba(249, 115, 22, 0.2) !important;
}

.text-sky-500 {
    color: #7c3aed !important;
}

.bg-sky-500-10 {
    background-color: rgba(124, 58, 237, 0.1) !important;
}

.border-sky-500-20 {
    border-color: rgba(124, 58, 237, 0.2) !important;
}

.text-emerald-500 {
    color: #10b981 !important;
}

.bg-emerald-500 {
    background-color: #10b981 !important;
}

.border-base-200 {
    border-color: var(--bs-border-color) !important;
}

.bg-base-200-50 {
    background-color: var(--bs-tertiary-bg) !important;
}

.bg-base-300 {
    background-color: var(--bs-secondary-bg) !important;
}

.hover-scale {
    transition: transform 0.2s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.text-base-content {
    color: var(--bs-body-color) !important;
}

.text-base-content-60 {
    color: rgba(var(--bs-body-color-rgb), 0.6) !important;
}

/* Sidebar & List Group styling for DaisyUI aesthetic */
.list-group-item-action {
    transition: all 0.2s ease-in-out;
}

.list-group-item-action:hover {
    transform: scale(1.02);
    background-color: var(--bs-tertiary-bg);
    border-radius: 0.75rem !important;
}

/* --- SYNCLISTO HEADER & NAVBAR --- */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent !important;
}

.synclisto-gradient {
    background-image: linear-gradient(to right, #6366f1, #a855f7);
}

.synclisto-logo-box {
    position: relative;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.synclisto-logo-bg {
    position: absolute;
    inset: 0;
    background-color: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    transition: transform 0.3s;
}

.synclisto-logo-box:hover .synclisto-logo-bg,
.group:hover .synclisto-logo-bg {
    transform: scale(1.05);
}

.synclisto-logo-p1 {
    width: 0.75rem;
    height: 1rem;
    border: 2px solid #6366f1;
    border-radius: 0.375rem;
    transform: rotate(-12deg) translate(-1px, -1px);
    transition: transform 0.3s;
}

.synclisto-logo-p2 {
    position: absolute;
    width: 0.75rem;
    height: 1rem;
    border: 2px solid #a855f7;
    border-radius: 0.375rem;
    transform: rotate(12deg) translate(1px, 1px);
    mix-blend-mode: multiply;
    transition: transform 0.3s;
}

.synclisto-logo-box:hover .synclisto-logo-p1,
.synclisto-logo-box:hover .synclisto-logo-p2,
.group:hover .synclisto-logo-p1,
.group:hover .synclisto-logo-p2 {
    transform: rotate(0) translate(0, 0);
}

.active-link {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.03) 100%) !important;
    color: #7c3aed !important;
    font-weight: 600 !important;
    border-right: 3px solid #7c3aed !important;
    border-radius: 0.75rem !important;
}

.navbar {
    background: #ffffff !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 65px;
    border-bottom: 1px solid var(--bs-border-color) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

[data-bs-theme="dark"] .navbar {
    background: #18181b !important;
}

/* --- TAILWIND UTILITIES FOR PERSO SECTION --- */
.text-sky-500 {
    color: #7c3aed !important;
}

.bg-sky-500-10 {
    background-color: rgba(124, 58, 237, 0.1) !important;
}

.hover\:bg-sky-500:hover {
    background-color: #7c3aed !important;
}

.hover\:bg-orange-500:hover {
    background-color: #f97316 !important;
}

.text-emerald-500 {
    color: #10b981 !important;
}

.bg-emerald-500-10 {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.hover\:bg-emerald-500:hover {
    background-color: #10b981 !important;
}

.text-base-content {
    color: var(--bs-body-color) !important;
}

.text-base-content-60 {
    color: var(--bs-body-color);
    opacity: 0.6;
}

/* --- ACCÈS ADMIN --- */
.admin-only {
    display: none !important;
}