:root {
    --primary: #0d6efd;
    --gray-light: #f8f9fa;
    --text: #333;
    --radius: 0.5rem;
}

body {
    margin: 0;
    font-family: 'Heebo', sans-serif;
    background-color: var(--gray-light);
    color: var(--text);
}

#wrapper {
    min-height: 100vh;
}

/* === Sidebar === */
#sidebar,
.sidebar {
    min-width: 220px;
    background: linear-gradient(-45deg, #317F96, #1b7d4c);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    color: white;
    padding: 1.5rem 1rem;
    width: 260px;
}

/* Estilizar o menu com hover elegante */
.sidebar .nav-link {
  color: white;
  margin-bottom: 1rem;
  font-weight: 500;
  position: relative;
  padding-left: 1.5rem;
  transition: background-color 0.3s ease;
}

.sidebar .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background-color: transparent;
  transition: background-color 0.3s ease;
  border-radius: 3px;
}

.sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link:hover::before {
  background-color: #a8f0c2; /* Verde claro suave */
}

/* Nome do sistema com ícone centralizado */
.sidebar h4 {
  text-align: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* === Menu Toggle === */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        width: 200px;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1100;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 6px 10px;
        font-size: 1rem;
        color: #333;
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* === Conteúdo Principal === */
.content {
    flex: 1;
    padding: 2rem;
}

/* === Saudação === */
.topbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .topbar {
        flex-direction: row;
        align-items: center;
    }
}

/* === Cards === */
.card {
    border-radius: var(--radius);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.bg-pink {
    background-color: #e83e8c !important;
    color: white;
}

/* === Tabelas === */
.table-container {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* === Login === */
.login-body {
    background: linear-gradient(-45deg, #317F96, #1b7d4c);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    max-width: 1100px;
    margin: auto;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.login-side {
    background: transparent;
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-side img {
    max-width: 180px;
    height: auto;
}

.login-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #317F96;
    flex: 1 1 50%;
}

.input-group-text {
    background-color: #317F96;
    color: #fff;
    border: none;
}

/* Saudação reduzida no login */
.saudacao-text {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Botão gradiente do modal */
.btn-gradiente {
    background: linear-gradient(-45deg, #317F96, #1b7d4c);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    color: white;
    border: none;
}

.btn-gradiente:hover {
    opacity: 0.9;
}

/* Login Mobile */
@media (max-width: 768px) {
    .login-side {
        display: none;
    }

    .login-wrapper {
        justify-content: center;
        padding: 2rem;
    }

    .login-box {
        max-width: 100%;
    }
}