:root {
    --sidebar-width: 280px;
    --header-height: 60px;
    --primary-color: #4e73df;
    --secondary-color: #f8f9fc;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
    padding: 5px;
}

.card {
    border-radius: 10px;
}

.input-group-text {
    min-width: 40px;
    justify-content: center;
}

/* Estilo para o botão de toggle da sidebar */
.sidebar-toggle {
    display: none;
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 1100;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle:hover {
    background: #3a5bc7;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8f9fc;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, var(--primary-color) 10%, #224abe 100%);
    color: white;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 0;
    list-style: none;
}

.sidebar-item {
    position: relative;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height));
    padding: 2rem;
    transition: all 0.3s;
}

/* Header */
.topbar {
    height: var(--header-height);
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2rem;
    transition: all 0.3s;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.35rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }

    .main-content,
    .topbar {
        margin-left: 0;
        left: 0;
    }

    .sidebar.active {
        left: 0;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    }

    .main-content.active,
    .topbar.active {
        left: var(--sidebar-width);
    }

    .main-content {
        padding-top: calc(var(--header-height) + 1rem);
    }
}

/* Modern table */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern th {
    background-color: #f8f9fc;
    color: #4e73df;
    font-weight: 600;
    padding: 1rem;
    border-top: 1px solid #e3e6f0;
}

.table-modern td {
    padding: 1rem;
    border-top: 1px solid #e3e6f0;
    vertical-align: middle;
}

.table-modern tr:hover td {
    background-color: #f6f9ff;
}

/* Badge modern */
.badge-modern {
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: 0.25rem;
}