/* Smart Park - Custom Styles */

/* Vous pouvez ajouter vos styles personnalisés ici */
.bg-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
}

.price-split {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.12em;
    white-space: nowrap;
}

.price-split .price-int {
    font-weight: 900;
    font-size: 1em;
}

.price-split .price-dec {
    font-size: 50%;
    line-height: 1;
    vertical-align: text-top;
    margin-top: 1em;
}
.price-split .price-currency {
    font-size: 50%;
    font-weight: 700;
    opacity: 0.7;
    top: -4px;
    position: relative;
}

sup, sub {
    font-size: 60%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.3em;
}

/* Sidebar Layout */
.sidebar-container {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

@media (max-width: 767px) {
    .sidebar-container {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        width: 280px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        height: 100vh !important;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar-container.active {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(8px);
        z-index: 90;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Prevent content jump by making the aside occupy 0px in flow on mobile */
    aside#adminSidebar {
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        position: absolute; /* Extra safety */
    }
}

@media (min-width: 768px) {
    .sidebar-container.collapsed {
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }
}

/* Burger Menu Micro-interaction */
.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 50;
    color: inherit;
}

.burger-btn div {
    width: 24px;
    height: 2px;
    background-color: currentColor;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.burger-btn.active div:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.active div:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.burger-btn.active div:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Custom scrollbar for sidebar */
.sidebar-container::-webkit-scrollbar {
    width: 4px;
}
.sidebar-container::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
