/* Plus Jakarta Sans - Local v12 */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
}


html,
body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.active-item {
    background-color: #ffffff !important;
}

.inactive-item {
    background-color: #e6e6e6 !important;
    border-bottom: 1px solid rgb(196, 196, 196) !important;
}

/* ============ Hoozy - Admin moderne ============ */

/* Sidebar : dégradé sombre sobre */
.app-sidebar {
    background: linear-gradient(180deg, #141b2d 0%, #0b1120 45%, #0f172a 100%);
    position: relative;
    z-index: 30;
}

.app-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--app-accent, #6366f1), #8b5cf6);
    z-index: 1;
}

.app-sidebar nav,
.app-sidebar ul,
.app-sidebar li,
.app-sidebar a,
.app-sidebar p {
    position: relative;
    z-index: 1;
}

/* Sous-menu du groupe */
.app-submenu {
    background: rgba(15, 23, 42, 0.55);
    border-radius: 0.75rem;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
}

html[dir="rtl"] .app-submenu {
    margin-left: 1rem;
    margin-right: 1rem;
}

/* Scrollbar fine sur la sidebar */
.app-sidebar::-webkit-scrollbar {
    width: 6px;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
}

.app-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* Réduit la bande colorée de l'item actif hérité */
.shrink-0 {
    flex-shrink: 0;
}

/* Contenu admin : fond doux */
.app-main {
    background: #f6f7fb;
}

/* Cartes / tableaux : coins et ombres plus doux */
.bg-white,
.base-card {
    /* pas de surcharge globale - on garde tailwind */
}

/* Barre de titre du header moderne */
.modern-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Petits ajustements RTL éprouvés */
html[dir="rtl"] body {
    letter-spacing: 0 !important;
}

/* Pastilles d'icônes sobres (menu sidebar) */
.app-icon-tile {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.app-icon-tile.active {
    background: linear-gradient(135deg, var(--app-accent, #6366f1), #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============ Hoozy - Photos 3D des moyens de paiement ============ */
.pm-3d {
    border-radius: 0.75rem;
    padding: 0.3rem;
    background: linear-gradient(145deg, #ffffff 0%, #eef2f7 100%);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.08),
        0 6px 14px -6px rgba(15, 23, 42, 0.22),
        0 16px 30px -12px rgba(15, 23, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -3px 6px rgba(15, 23, 42, 0.1);
    transform: perspective(700px) rotateX(5deg) rotateY(-5deg);
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

html[dir="rtl"] .pm-3d {
    transform: perspective(700px) rotateX(5deg) rotateY(5deg);
}

.pm-3d:hover {
    transform: perspective(700px) rotateX(0deg) rotateY(0deg) translateY(-4px);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.1),
        0 10px 22px -8px rgba(15, 23, 42, 0.28),
        0 26px 50px -16px rgba(15, 23, 42, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -3px 6px rgba(15, 23, 42, 0.12);
}
