html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.bg-custom-sweet {
    background-color: #8b709a
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-custom-sweet {
    width: 120px;
    height: 120px;
    background-color: #8b709a;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

@media screen and (max-width: 768px) {
    .btn-custom-sweet {
        width: 90px;
        height: 90px;
        font-size: 14px;
    }
}

.btn-custom-sweet:hover {
    background-color: #7a5f87;
}

.btn-custom-sweet:active {
    transform: scale(0.95);
}

select.form-control {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

dropdown {
    position: relative;
}


@media (min-width: 993px) {
    .nav-item.dropdown {
        position: relative;
    }

        .nav-item.dropdown .dropdown-menu {
            top: 0;
            left: 100%;
            margin-left: 5px;
            background-color: var(--cor-sidebar);
            border: none;
            border-radius: 6px;
            padding: 0.5rem 0;
            opacity: 0;
            visibility: hidden;
            transform: translateX(10px);
            transition: all 0.25s ease;
            min-width: 230px;
        }

        .nav-item.dropdown.show > .dropdown-menu,
        .nav-item.dropdown:hover > .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }

    .dropdown-menu .dropdown-item {
        color: #fff;
        padding: 10px 18px;
        transition: background 0.2s;
    }

        .dropdown-menu .dropdown-item:hover {
            background-color: var(--cor-hover);
        }
}

@media (max-width: 992px) {
    .nav-item.dropdown .dropdown-menu {
        position: static;
        display: none;
        background-color: rgba(255,255,255,0.05);
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 10px;
    }

    .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding-left: 35px;
    }
}


.nav-item:hover > .dropdown-menu {
    display: block;
}

.nav-item.dropdown.show > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-menu .dropdown-item {
    color: #fff;
    padding: 10px 15px;
    transition: background 0.2s;
}

    .dropdown-menu .dropdown-item:hover {
        background-color: var(--cor-hover);
    }

.dropdown-item i {
    margin-right: 8px;
}


.sidebar.collapsed .dropdown-menu {
    left: 70px;
}

@media (max-width: 768px) {
    .nav-item .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(255,255,255,0.05);
    }

    .dropdown-item {
        padding-left: 35px;
    }
}

:root {
    --cor-fundo: #f7f6fa;
    --cor-card: #ffffff;
    --cor-sidebar: #8b709a;
    --cor-hover: #a48fc0;
    --cor-primaria: #6d5a8e;
    --cor-texto: #2d2a32;
}

body {
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    margin: 0;
    overflow-x: hidden;
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background: var(--cor-sidebar);
    color: white;
    width: 260px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transition: all 0.3s ease;
    z-index: 1000;
}

    .sidebar.collapsed {
        width: 70px;
    }

        .sidebar.collapsed .menu a span {
            display: none;
        }

        .sidebar.collapsed .menu i {
            margin-right: 0;
            text-align: center;
            width: 100%;
            font-size: 20px;
        }

        .sidebar.collapsed .sidebar-header img {
            display: none;
        }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

    .sidebar-header img {
        height: 45px;
        transition: all 0.3s ease;
    }

.toggle-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.menu {
    flex-grow: 1;
    padding: 20px 0;
}

    .menu a {
        display: flex;
        align-items: center;
        color: #fff;
        padding: 12px 20px;
        text-decoration: none;
        transition: background 0.3s;
    }

        .menu a:hover {
            background-color: var(--cor-hover);
        }

    .menu i {
        margin-right: 10px;
        font-size: 18px;
        width: 22px;
        text-align: center;
    }

.menu-title {
    padding: 0 20px;
    font-size: 12px;
    text-transform: uppercase;
    color: #e6dff0;
    margin-top: 20px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.main-content {
    flex-grow: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.collapsed + .main-content {
    margin-left: 70px;
}

.topbar {
    background: var(--cor-sidebar);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 900;
}

.app-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--cor-primaria);
}

.topbar-right {
    display: flex;
    align-items: end;
}

.content {
    flex-grow: 1;
    padding: 1.5rem;
}

.footer {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #555;
    background: var(--cor-card);
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
}

@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }

        .sidebar .menu a span {
            display: none;
        }

        .sidebar .menu i {
            width: 100%;
            margin-right: 0;
            text-align: center;
            font-size: 20px;
        }

    .sidebar-header img {
        display: none;
    }

    .main-content {
        margin-left: 70px !important;
    }

    .toggle-btn {
        display: block;
        position: absolute;
        left: 10px;
        top: 15px;
        background: transparent;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }
}

@media (max-width: 320px) {
    .sidebar {
        position: fixed;
        z-index: 2000;
        width: 220px;
        left: -220px;
        top: 0;
        height: 100vh;
        transition: all 0.3s ease;
    }

        .sidebar.show {
            left: 0;
        }

    .main-content {
        margin-left: 0 !important;
    }
}