/* ====== IMPORTS ====== */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Sora:wght@100..800&display=swap');

/* ====== ROOT VARIÁVEIS ====== */
:root {
    --background: #000;
    --primary: #cc33ff;
    --primary-dark: #380349;
    --primary-light: #cc33ff7a;
    --secondary: #4e0d64;
    --text: #fff;
    --input-bg: #1a1a1a;
    --input-border: #a774ff;
    --error: #ff4c4c;
    --radius: 12px;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.4);

    --font-base: "Sora", sans-serif;
    --font-title: "Archivo Black", sans-serif;

    --transition: all 0.3s ease-in-out;
}

a:hover {
    color: var(--primary);
}




/* ====== ANIMAÇÃO GRADIENTE ====== */
.gradient {
    background: linear-gradient(229deg, #020002, #3d0a4e, #18011f, #3d0a4e);
    background-size: 240% 240%;
    animation: gradient-animation 10s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.page-content {
    padding: 0;
}

.vertical-menu {
    top: 5px;
}

.sidebar-enable img {
    display: none;
}

.vertical-collpsed .vertical-menu #sidebar-menu>ul>li>a {
    padding: 10px 20px;
    min-height: 32px;
    -webkit-transition: none;
    transition: none;

}

.vertical-collpsed .vertical-menu #sidebar-menu>ul>li:hover>a {
    color: white;
    background-color: #222;
}

.sidebar-enable .vertical-menu {
    animation: fadeIn 1.2s ease-in-out;
}

/* Quando o menu estiver colapsado (vertical-collpsed), ocultar o nome do usuário */
.vertical-collpsed .user-footer .username {
    display: none;
}

/* Opcional: centralizar o botão de logout no modo colapsado */
.vertical-collpsed .user-footer {
    justify-content: center;
}

/* E ajustar o botão no modo colapsado */
.vertical-collpsed .user-footer .logout-btn {
    font-size: 22px;
    padding: 8px;
}

table span.badge  {
    color: white !important;
}


.modal-footer {
    background-color: transparent !important;
}
.modal-footer .btn{
    padding-left: 10px;
}

/* ====== BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text);
}

.modal {
    background-color: transparent;
    box-shadow: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ====== LOGIN CONTAINER ====== */
.container.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    backdrop-filter: blur(6px);
    padding: 2rem;
}

/* ====== LOGO ====== */
.logoStart img {
    width: 120px;
    height: auto;
    animation: fadeIn 1.2s ease-in-out;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== CARD DE LOGIN ====== */
.auth-container {
    background-color: rgba(30, 0, 35, 0.6);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 2rem 3rem;
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 100%;
    animation: fadeInSlow 1.8s ease-in-out;
}

@keyframes fadeInSlow {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-title h1 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* ====== FORM ====== */
.loginForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loginForm input {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.loginForm input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-light);
}

.loginForm button {
    background-color: var(--primary);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.loginForm button:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.toggle-sidebar-btn {
    position: absolute;
    z-index: 9999;
    padding: 5px;
    font-size: 1rem;
    top: 10px;
    left: 10px;
    text-align: center;
    background-color: #0000005b;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 1024px) {

    .toggle-sidebar-btn {
        position: relative;
        z-index: 9999;
        background-color: #1a1a1a;
        padding: 3px;
        font-size: 1.5rem;
        top: 0;
        left: 0;
        text-align: center;
    }

    .auth-container {
        width: 90%;
        padding: 1.5rem;
    }

    .login-title h1 {
        font-size: 1.5rem;
    }

    .loginForm button {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logoStart img {
        width: 90px;
    }

    .auth-container {
        padding: 1.2rem;
    }

    .loginForm input {
        font-size: 0.95rem;
    }
}