/* Root Variables */
:root {
    --sidebar-width: 260px;
    --navbar-height: 60px;
    --primary-color: #8b3a8b;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --sidebar-bg: #8b3a8b;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
}

/* Reset e Base */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Mobile First - Layout Base */
.main-content {
    width: 100%;
    padding: 1rem;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1040;
    overflow-y: auto;
    transition: left 0.3s ease;
}

.sidebar.show {
    left: 0;
}

/* Menu Toggle Button */
.menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1030;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle i {
    font-size: 1.25rem;
}

/* Menu de Navegação */
.nav-link {
    color: white !important;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--sidebar-hover);
}

.nav-link i {
    font-size: 1.1rem;
}

/* Logo */
.sidebar .logo-container {
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.sidebar .logo-container img {
    max-width: 80%;
    height: auto;
}

/* Desktop Layout (992px e acima) */
@media (min-width: 992px) {
    body {
        padding-left: var(--sidebar-width);
    }

    .sidebar {
        left: 0;
        width: var(--sidebar-width);
    }

    .menu-toggle {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 2rem;
    }
}

/* Overlay para mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1030;
}

.sidebar-overlay.show {
    display: block;
}

/* Toast e Notificações */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1060;
}