/* Personalizzazioni aggiuntive per il template Sneat */

/* Variabili colori principali */
:root {
    --bs-primary: #696cff;
    --bs-secondary: #8592a3;
    --bs-success: #71dd37;
    --bs-info: #03c3ec;
    --bs-warning: #ffab00;
    --bs-danger: #ff3e1d;
    --bs-dark: #233446;
    --bs-black: #000;
    --bs-white: #fff;
    --bs-body: #f4f5fb;
    --bs-heading-color: #566a7f;
    --bs-text-muted: #a1acb8;
    --bs-border-color: #eceef1;
}

/* Impostazione generale font e colori */
body {
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: #697a8d;
    background-color: #f5f5f9;
}

/* Fix per la navigazione principale */
.layout-wrapper {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    min-height: 100vh;
}

.layout-container {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    flex-direction: row;
    width: 100%;
}

.layout-menu {
    width: 260px;
    height: 100vh;
    position: fixed;
    flex-shrink: 0;
    background-color: #fff;
    box-shadow: 0 0 15px 0 rgba(67, 89, 113, 0.1);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

html.layout-menu-expanded .layout-menu {
    transform: translateX(0);
}

.layout-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin-left: 0;
    transition: margin-left 0.3s ease;
    min-width: 0;
    width: 100%;
}

@media (min-width: 1200px) {
    .layout-menu {
        transform: translateX(0);
    }
    
    .layout-page {
        margin-left: 260px;
    }
    
    html:not(.layout-menu-expanded) .layout-menu {
        transform: translateX(-100%);
    }
    
    html:not(.layout-menu-expanded) .layout-page {
        margin-left: 0;
    }
}

/* Menu Laterale */
.app-brand {
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.app-brand-logo {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.app-brand-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #566a7f;
}

.menu-inner {
    height: calc(100vh - 64px);
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.menu-item {
    position: relative;
    margin-bottom: 0.125rem;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    color: #697a8d;
    transition: all 0.2s ease;
}

.menu-link:hover {
    color: #696cff;
    background-color: rgba(105, 108, 255, 0.06);
}

.menu-item.active > .menu-link {
    color: #696cff;
    font-weight: 600;
    background-color: rgba(105, 108, 255, 0.16);
}

.menu-item.active > .menu-link i,
.menu-item.active > .menu-link .menu-icon {
    color: #696cff;
}

.menu-icon {
    display: flex;
    align-items: center;
    color: #697a8d;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    width: 1.5rem;
    justify-content: center;
}

.menu-sub {
    padding-left: 2.8125rem;
    display: none;
}

.menu-item.open > .menu-sub {
    display: block;
}

/* Fix per la navbar superiore */
.layout-navbar {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
    background-color: #fff;
    box-shadow: 0 0 0.375rem 0 rgba(67, 89, 113, 0.1);
}

/* Contenuto principale */
.content-wrapper {
    flex: 1;
    width: 100%;
    padding: 1.5rem 1.5rem 0;
}

.container-xxl {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

/* Footer */
.footer {
    padding: 1rem 1.5rem;
    background-color: #f5f5f9;
    color: #697a8d;
}

.bg-footer-theme {
    background-color: #f5f5f9 !important;
}

/* Card */
.card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1.125rem rgba(75, 70, 92, 0.1);
    border: 0;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 500;
    color: #566a7f;
    margin-bottom: 0.5rem;
}

/* Avatar */
.avatar {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avatar-online::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #71dd37;
    border: 2px solid #fff;
}

/* Logo e branding */
.app-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Dropdown utente */
.dropdown-menu {
    box-shadow: 0 0.25rem 1rem rgba(67, 89, 113, 0.3);
    border: 0;
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #697a8d;
}

.dropdown-item:hover {
    background-color: rgba(105, 108, 255, 0.06);
    color: #696cff;
}

/* Stili specifici per i testi */
.text-primary {
    color: #696cff !important;
}

.text-muted {
    color: #a1acb8 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* Layout Overlay */
.layout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

html.layout-menu-expanded .layout-overlay {
    display: block;
}

@media (min-width: 1200px) {
    html.layout-menu-expanded .layout-overlay {
        display: none;
    }
}

/* Fix per problemi specifici */
.tf-icons {
    font-size: inherit;
}

.bx {
    vertical-align: middle;
}
