/*
Theme Name: Navigate Sales App v1.0.4
Theme URI: https://navigate.one
Author: Navigate One Tech
Description: Un thème léger conçu pour transformer WordPress en une application de gestion des ventes.
Version: 1.0.4
Text Domain: nav-sales-theme
*/

:root {
    --sidebar-width: 240px;
    --bottom-nav-height: 70px;
    --primary: hsl(243, 75%, 59%);
    --bg-app: hsl(220, 30%, 98%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    background: var(--bg-app);
}

#nav-app-shell {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Desktop */
#nav-sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
}

.nav-brand {
    padding: 30px 20px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    text-align: center;
}

.nav-app-menu {
    flex: 1;
    padding: 20px 10px;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu-item:hover,
.nav-menu-item.active {
    background: hsla(243, 75%, 59%, 0.1);
    color: var(--primary);
}

/* Main Content Area */
#nav-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

/* Bottom Nav Mobile */
#nav-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--glass-border);
    justify-content: space-around;
    align-items: center;
    z-index: 200;
}

.nav-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #888;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-bottom-item.active {
    color: var(--primary);
}

.nav-bottom-icon {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 900px) {
    #nav-sidebar {
        display: none;
    }

    #nav-bottom-bar {
        display: flex;
    }

    #nav-main-content {
        padding: 20px 15px calc(var(--bottom-nav-height) + 20px);
    }
}