/* -------------------------------------
   BODY
------------------------------------- */
body {
    background: #f3f4f6;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* -------------------------------------
   TOPBAR PREMIUM AVANZATA
------------------------------------- */
.topbar-erp-advanced {
    height: 64px;
    background: #cacaca;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.topbar-erp-advanced .brand {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
}

.topbar-link {
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
}

.topbar-link:hover {
    background: #f3f4f6;
}

.topbar-link.active {
    background: #2563eb;
    color: white;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* USER MENU */
.user-menu {
    position: relative;
    cursor: pointer;
    padding-bottom: 18px;
}

.user-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    object-fit: cover;
    transition: 0.2s;
}

.user-avatar img:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    padding: 12px;
    display: none;
    flex-direction: column;
    max-height: none;
    height: auto;
    overflow: visible;
}

.user-dropdown.open {
    display: flex;
}

.user-dropdown a {
    padding: 8px 10px;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.user-dropdown a:hover {
    background: #f3f4f6;
}

.user-dropdown a.logout {
    color: #dc2626;
}


/* CONTENUTO PRINCIPALE */
.content-area {
    flex: 1 !important;
    padding: 30px !important;
    background: #f9fafb !important;
}

/* -------------------------------------
   MOBILE FIX
------------------------------------- */
@media (max-width: 768px) {

    .topbar-toggle {
        display: block !important;
    }

    .topbar-left .brand,
    .topbar-left .topbar-link,
    .topbar-right {
        display: none !important;
    }

    .sidebar-area {
        display: none !important;
    }

    .content-area {
        padding: 20px !important;
    }

    .table-responsive {
        overflow-x: auto !important;
        display: block !important;
        width: 100% !important;
    }

    #offer-items-table {
        min-width: 1100px !important;
    }

    body {
        overflow-x: hidden !important;
    }

    .topbar-erp-advanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
}

.user-dropdown {
    top: 48px !important;
}

    #offer-tabs {
        margin-top: 10px;
        margin-bottom: 10px;
        padding-bottom: 0;
    }
    #offer-tabs .nav-link {
        padding: 4px 10px;
        font-size: 0.85rem;
    }

.tabs-clean {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 2px !important;
}

.tab-content {
    margin-top: 4px !important;
}
.content-wrapper {
    min-height: unset !important;
    height: auto !important;
}


/* BASE TYPOGRAPHY */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f3f3;
    color: #1f2937;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* PUBLIC NAVBAR PREMIUM */
.public-navbar {
    background-color: #dfdfdf; /* grigio elegante */
    color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}


.nav-container {
    width: 100%;
    max-width: 100% !important;
    margin: 0;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.nav-button {
    padding: 8px 16px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.nav-button:hover {
    background: #1e4fcf;
}

/* USER MENU PREMIUM */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

/* FIX: evita che il menu utente blocchi i click sulla pagina */
.user-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 240px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 999;

    /* FIX CRITICO */
    pointer-events: none;
}

.user-menu.active .user-dropdown,
.user-dropdown.open {
    display: block;
    pointer-events: auto; /* quando aperto, torna cliccabile */
}

.user-dropdown.open {
    display: block;
}

.user-info {
    margin-bottom: 10px;
}

.user-info strong {
    display: block;
    font-size: 15px;
    color: #111827;
}

.user-info small {
    font-size: 13px;
    color: #6b7280;
}

.panel-item {
    display: block;
    padding: 8px 0;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.panel-item:hover {
    color: #2563eb;
}

.panel-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 10px 0;
}


/* BUTTONS */
.btn-light {
    font-weight: 600;
    padding: 12px 24px;
}

.btn-outline-light {
    font-weight: 600;
    padding: 12px 24px;
    border-width: 2px;
}

.btn-small {
    padding: 4px 7px !important;
    font-size: 0.85rem !important;
}

/* SERVICE CARDS */

.public-card {
    max-width: 480px;
    margin: 80px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    text-align: center;
}

.public-illustration {
    width: 160px;
    opacity: 0.9;
    margin: 30px 0;
}

.public-text-muted {
    font-size: 14px;
    color: #6b7280;
}

.public-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, transform .1s ease;
}

.public-btn:hover {
    background: #1e4fcf;
    transform: translateY(-1px);
}

.card-modern, .service-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: all .2s ease;
    text-align: center;
}

.card-modern:hover, .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 42px;
    color: #0d6efd;
    margin-bottom: 16px;
}

/* SPLIT-SCREEN LAYOUT */
.auth-split {
    display: flex;
    min-height: 100vh;
    background: #f3f4f6;
}

/* COLONNA SINISTRA */
.auth-left {
    flex: 1;
    background: url('/assets/img/hero.jpg') center/cover no-repeat;
    position: relative;
}

/* OVERLAY PREMIUM */
.auth-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15));
}

/* COLONNA DESTRA */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 50px;
    background: #ffffff;
}

/* AUTH CARD PREMIUM */
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 48px 42px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
}

/* TITOLI */
.auth-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
}

/* INPUT PREMIUM */
.auth-input {
    height: 52px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding-left: 14px;
    font-size: 15px;
    background: #f9fafb;
    color: #111827;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* BUTTON PREMIUM */
.auth-btn {
    height: 54px;
    font-size: 17px;
    font-weight: 600;
    background-color: #2563eb;
    border-radius: 10px;
    border: none;
    color: #fff;
    width: 100%;
    transition: background .2s ease, transform .1s ease;
}

.auth-btn:hover {
    background-color: #1e4fcf;
    transform: translateY(-1px);
}

/* LINK */
.auth-links a {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* FOOTER */
.auth-footer {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    padding: 20px 0;
}

.auth-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #374151;
}

/* TOPBAR */
.dashboard-topbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-logo {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-link {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.topbar-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.auth-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

/* USER MENU */
.topbar-user {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.topbar-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 240px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 999;
}

.topbar-user.active .topbar-dropdown {
    display: block;
}

.topbar-user-info strong {
    display: block;
    font-size: 15px;
    color: #111827;
}

.topbar-user-info small {
    font-size: 13px;
    color: #6b7280;
}

.topbar-item {
    display: block;
    padding: 8px 0;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.topbar-item:hover {
    color: #2563eb;
}

.topbar-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 10px 0;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    transition: all 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 48px;
    color: #0d6efd;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 240px;
    height: calc(100vh - 70px);
    background: #1f2937;
    color: white;
    padding-top: 20px;
    transition: all 0.3s ease;
    z-index: 999;
}

.sidebar.closed {
    left: -240px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 15px;
}

.sidebar-menu li a:hover {
    background: #374151;
    color: white;
}

/* TOGGLE */
.sidebar-toggle {
    position: absolute;
    top: 10px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
}

/* CONTENUTO A DESTRA */
#main-content {
    margin-left: 240px;
    transition: margin-left 0.3s ease;
}

.sidebar-user-box {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.sidebar-username {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

/* HERO FULL SCREEN */
.hero-modern {
    position: relative;
    width: 100%;
    height: 95vh; /* FULL SCREEN */
    background: url('/assets/img/premium7.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0;
}

/* Overlay per rendere leggibile il testo */
.hero-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.hero-modern .container {
    position: relative;
    z-index: 2;
}


.hero-modern h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-modern p {
    font-size: 1.25rem;
    color: #ffffff;
    opacity: 0.95;
}

#sidebar {
    max-height: 100vh;
    overflow-y: auto;
}

.submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
}

.submenu-items {
    display: none;
    padding-left: 20px;
}

.submenu.open .submenu-items {
    display: block;
}

.arrow {
    transition: transform 0.2s;
}

.submenu.open .arrow {
    transform: rotate(180deg);
}
/* MENU MOBILE SISTEMATO */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    z-index: 9998;
    overflow-y: auto;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 17px;
    color: #333;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}

.mobile-menu a.logout {
    color: #c0392b;
    font-weight: 600;
}

.mobile-menu hr {
    margin: 15px 0;
    border: none;
    border-bottom: 1px solid #ddd;
}

/* OVERLAY */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9997;
}

.mobile-overlay.show {
    display: block;
}

/* HAMBURGER */
.mobile-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 26px;
        color: #333;
        position: absolute;
        right: 16px;
        top: 14px;
        z-index: 9999;
    }

    .nav-right {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-toggle,
    .mobile-menu,
    .mobile-overlay {
        display: none !important;
    }
}

.mobile-menu-inner {
    padding-top: 20px;
}

.mobile-menu-inner a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    color: #333;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}

/* SIDEBAR MOBILE */
@media (max-width: 768px) {

    /* Sidebar chiusa */
    #sidebar {
        position: fixed;
        top: 0;
        left: -240px;
        width: 240px;
        height: 100vh;
        background: #fff;
        transition: left 0.3s ease;
        z-index: 9998;
    }

    /* Sidebar aperta */
    #sidebar.open {
        left: 0;
    }

    /* Overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 9997;
    }

    .sidebar-overlay.show {
        display: block;
    }

    /* Il contenuto non deve essere spinto */
    #main-content {
        margin-left: 0 !important;
    }

    /* Nascondi il toggle desktop se serve */
    .sidebar-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: -50px;
        background: none;
        border: none;
        font-size: 22px;
        color: #333;
        z-index: 9999;
    }
}

@media (max-width: 768px) {
    .login-hero,
    .register-hero {
        height: auto !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .login-hero .col-lg-6,
    .login-hero .col-lg-5,
    .register-hero .col-lg-6,
    .register-hero .col-lg-5 {
        margin-top: 20px;
    }
}
@media (max-width: 768px) {

    /* Il container non deve avere padding */
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    /* La row non deve avere margini negativi */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Le colonne devono essere full width senza padding */
    .row > .col-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* La card deve occupare tutto lo schermo */
    .card {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important; /* stile app */
    }
}

.sidebar-horizontal {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 15px;
}

.field-group {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    max-width: 180px;
}

.field-group label {
    font-size: 13px;
    margin-bottom: 3px;
}

.sidebar-horizontal .form-control-sm,
.sidebar-horizontal .form-select-sm {
    height: 32px;
    padding: 4px 8px;
}

/* Barra fissa in alto */
.offer-toolbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Evita che la tabella si attacchi troppo */
.card.card-outline.card-primary {
    margin-top: 10px;
}

/* Totali in linea, ben visibili */
.totals-inline .total-box {
    display: flex;
    flex-direction: column;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    min-width: 110px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Colori morbidi ma visibili */
.total-imponibile {
    background: #eaf4ff;      /* azzurro leggero */
    border: 1px solid #cfe4ff;
}

.total-iva {
    background: #fff3e0;      /* arancio chiaro */
    border: 1px solid #ffe0b3;
}

.total-totale {
    background: #e9ffe9;      /* verde chiaro */
    border: 1px solid #c8ffc8;
    font-weight: 700;
    font-size: 15px;
}

/* Pulsanti stile "box" come i totali */
.action-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.15s ease-in-out;
}

/* Salva: blu morbido */
.action-save {
    background: #e6f0ff;
    border-color: #bcd4ff;
    color: #004a99;
}

.action-save:hover {
    background: #d8e8ff;
}

/* Annulla: grigio elegante */
.action-cancel {
    background: #f2f2f2;
    border-color: #dcdcdc;
    color: #444;
}

.action-cancel:hover {
    background: #e8e8e8;
}

.offer-row td {
    vertical-align: middle;
}

.cursor-move {
    cursor: grab;
}

.cursor-move:active {
    cursor: grabbing;
}

.btn-add-below,
.btn-duplicate-row,
.btn-remove-row {
    margin-right: 3px;
}

.table td input {
    height: 32px;
}

.item-subtotale {
    font-weight: 600;
    color: #2c3e50;
}

/* MOBILE FIRST */
@media (max-width: 768px) {

    /* Container più stretto e senza padding laterale */
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Card full width */
    .card {
        border-radius: 12px !important;
        width: 100% !important;
    }

    /* Titoli più piccoli */
    h3, h1 {
        font-size: 22px !important;
    }

    /* Tabelle scrollabili */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.table {
        min-width: 600px;
    }

    /* Form full width */
    .form-control,
    .btn {
        width: 100% !important;
    }

    /* Spaziature più morbide */
    .py-4 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* Colonne in verticale */
    .row > .col,
    .row > [class*="col-"] {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .btn-primary {
        padding: 12px !important;
        font-size: 16px !important;
    }
}

.nav-top-info {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
}

.nav-top-info a {
    color: #333;
    text-decoration: none;
}

.nav-top-info a:hover {
    color: var(--primary-color);
}
footer.footer-fixed a,
footer.footer-fixed .footer-links a,
footer.footer-fixed .footer-cookie-link {
    color: #fff !important;
    text-decoration: none !important;
}

footer.footer-fixed a:hover {
    color: #ddd !important;
}
.feature-box {
    transition: all 0.2s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

/* Layout principale */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Trasforma il body in un layout verticale */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Il main cresce e spinge il footer in basso */
#main-content {
    flex-grow: 1;
    padding-bottom: 40px; /* aria sotto */
}

/* Footer moderno */
.footer-modern {
    background: #575757;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
}

.footer-modern .footer-cookie-link {
    color: #ffffff !important;
}

.footer-modern .footer-cookie-link:hover {
    color: #dddddd !important;
}

/* Sidebar più compatta */
.sidebar {
    font-size: 0.88rem; /* testo più piccolo */
}

/* Voci principali */
.sidebar-menu > li > a {
    padding: 8px 14px !important; /* meno spazio */
    font-size: 0.9rem;
}

/* Icone più piccole e vicine al testo */
.sidebar-menu i {
    font-size: 0.95rem;
    margin-right: 6px !important;
}

/* Submenu header */
.submenu-header a {
    padding: 8px 14px !important;
    font-size: 0.9rem;
}

/* Freccia submenu più piccola */
.submenu-toggle i {
    font-size: 0.75rem;
}

/* Submenu items */
.submenu-items a {
    padding: 6px 28px !important;
    font-size: 0.85rem;
}

/* Riduce spazio verticale tra le voci */
.sidebar-menu li {
    margin-bottom: 2px;
}

/* Divider più sottile */
.sidebar hr {
    margin: 8px 0;
    opacity: 0.3;
}

.mobile-menu {
    font-size: 0.9rem;
    background: #111;
}

.mobile-menu-inner a {
    padding: 10px 14px;
    display: block;
    border-radius: 6px;
    color: #fff;
}

.mobile-menu-inner a:hover {
    background: rgba(255,255,255,0.08);
}

.mobile-menu-inner hr {
    margin: 10px 0;
    opacity: 0.25;
}
