@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

/* Paleta de cores personalizada */
:root {
    --cor-primaria: #1E90FF;     /* Azul */
    --cor-secundaria: #FFA500;   /* Laranja */
    --cor-fundo: #FFFFFF;        /* Branco */
    --cor-destaque: #FFD700;     /* Amarelo dourado */
    --cor-texto-escuro: #333333;
}

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Cabeçalho e Navegação */
header {
    background-color: var(--cor-primaria);
    color: var(--cor-fundo);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin: 10px auto;
}

nav .logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cor-destaque);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--cor-destaque);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 80%;
}

nav ul li a:hover {
    color: var(--cor-destaque);
    transform: translateY(-2px);
}

/* Estilo especial para o link do Dashboard */
.dashboard-link {
    background: linear-gradient(135deg, var(--cor-primaria), #2980b9);
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.dashboard-link::before {
    content: '📊';
    font-size: 1.1em;
}

.dashboard-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #2980b9, var(--cor-primaria));
}

/* Estilo especial para o link de Logout */
.logout-link {
    color: #ff6b6b !important;
    border: 2px solid #ff6b6b;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease !important;
}

.logout-link:hover {
    background-color: #ff6b6b;
    color: white !important;
    transform: translateY(-2px);
}

/* Seções Principais */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    background-color: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-secondary {
    background-color: #2ecc71;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

/* Seção Home Moderna */
#home {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, #2c3e50 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/pattern.svg') center/cover;
    opacity: 0.1;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.home-content {
    max-width: 800px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.home-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, var(--cor-destaque));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleFade 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.home-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.6s;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.9s;
}

.cta-buttons .btn {
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--cor-primaria), #2980b9);
    border: none;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white !important;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes titleFade {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Seção Recursos */
#features {
    padding: 100px 0;
    background: #f8f9fa;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card .text-muted {
    margin-top: auto;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.8;
}

.feature-card .text-muted i {
    width: 20px;
    color: var(--cor-primaria);
    margin-right: 8px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    color: var(--cor-texto-escuro);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--cor-primaria), var(--cor-secundaria));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Seção About */
#about {
    padding: 100px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 40px 20px;
}

.about-card {
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-icon {
    font-size: 2.5rem;
    color: var(--cor-primaria);
    margin-bottom: 20px;
}

/* Final CTA Section */
#final-cta {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, #2c3e50 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/pattern.svg') no-repeat center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

#final-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulseEffect 10s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseEffect {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
}

#final-cta .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

#final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    text-shadow: 0 4px 6px rgba(0,0,0,0.2);
    animation: titleFade 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

#final-cta p {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.btn-cta {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: var(--cor-primaria);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.9s;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
    color: #2c3e50;
}

.btn-cta:hover::before {
    left: 100%;
}

/* Formulários */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
}

form input {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #2980b9;
}

/* Estilos para página de login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.login-container {
    width: 400px;
    background-color: white;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 40px;
}

.login-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.input-icon {
    display: flex;
    align-items: center;
    position: relative;
}

.input-icon i {
    color: #7f8c8d;
    display: flex;
    align-items: center;
    font-size: 18px;
    position: relative;
    top: -7px;
    
    /* Estilo de borda */
    border: 1px solid #e0e0e0;
    border-right: none; /* Remove borda direita */
    border-radius: 5px 0 0 5px; /* Arredonda apenas cantos esquerdos */
    padding: 8px;
    background-color: #f9f9f9;
}

.input-icon input {
    flex-grow: 1;
    padding: 15px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 0 5px 5px 0; /* Arredonda apenas cantos direitos */
}

.input-icon input::placeholder {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    transition: all 0.2s ease;
    pointer-events: none;
}

.forgot-password {
    text-align: right;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    display: block;
}

.btn-login {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #34495e;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signup-link p {
    margin-bottom: 15px;
}

.signup-link a {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #2c3e50;
}

.signup-link a:hover {
    background-color: #34495e;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Estilos para página de Recursos */
.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.features-header {
    text-align: center;
    margin-bottom: 40px;
}

.features-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.features-header p {
    color: #7f8c8d;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.feature-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-item p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.feature-item ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-item ul li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
    position: relative;
}

.feature-item ul li:before {
    content: '✓';
    color: #2ecc71;
    margin-right: 10px;
}

.feature-item ul li:last-child {
    border-bottom: none;
}

.cta-section {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background-color: #f4f4f4;
    border-radius: 10px;
}

.cta-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Responsividade para página de Recursos */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para seção de preview de recursos */
.features-preview {
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.features-preview h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.features-preview p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Responsividade */
@media (max-width: 992px) {
    .feature-grid,
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    #home h2 {
        font-size: 2rem;
    }

    #home p {
        font-size: 1.2rem;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }
}

/* Rodapé */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

/* Adicionar estilos para a seção final CTA */
#final-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

#final-cta .container {
    max-width: 800px;
    width: 100%;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#final-cta h2 {
    margin-bottom: 1rem;
}

#final-cta p {
    margin-bottom: 2rem;
    max-width: 600px;
    text-align: center;
}

#final-cta .btn-cta {
    display: inline-block;
    background-color: var(--cor-secundaria);
    color: var(--cor-fundo);
    border: 2px solid var(--cor-secundaria);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

#final-cta .btn-cta:hover {
    background-color: var(--cor-destaque);
    border-color: var(--cor-destaque);
    color: var(--cor-texto-escuro);
}

#final-cta {
    background-color: var(--cor-primaria);
    color: var(--cor-fundo);
    padding: 50px 0;
    text-align: center;
}

#final-cta h2 {
    color: var(--cor-destaque);
    margin-bottom: 20px;
}

/* Classe de fundo cinza para seções alternadas */
.bg-gray {
    background-color: #f4f4f4 !important;
    padding: 4rem 0;
}

.bg-gray .container {
    background-color: transparent !important;
}

/* Garantir fundo branco para cards em seções com fundo cinza */
.bg-gray .feature-card,
.bg-gray .about-card {
    background-color: white !important;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.bg-gray .feature-card:hover,
.bg-gray .about-card:hover {
    transform: translateY(-5px);
}

/* Estilo para a seção final CTA */
#final-cta {
    background-color: #f4f4f4 !important;
    padding: 4rem 0;
}

#final-cta .container {
    background-color: white !important;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Estilos para o header */
.main-header {
    background: linear-gradient(45deg, #4A90E2, #7AB8EF);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-header .logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.main-header .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header .nav-links li {
    margin-left: 20px;
}

.main-header .nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-header .nav-links a:hover {
    color: #FFD700;
}

.main-header .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 300;
}

.main-header .logout-link {
    background-color: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.main-header .logout-link:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Adicionar classe para remover sublinhado de links */
.no-underline {
    text-decoration: none;
}

.no-underline:hover {
    text-decoration: none;
}

/* Estilos para mensagens de erro */
.alert {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.alert h3 {
    margin-top: 0;
    color: #721c24;
    border-bottom: 1px solid #f5c6cb;
    padding-bottom: 10px;
}

.alert ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.alert li {
    margin-bottom: 5px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-danger i {
    margin-right: 10px;
    font-size: 20px;
}

.alert-danger::before {
    content: '⚠️'; /* Emoji de aviso */
    margin-right: 10px;
    font-size: 20px;
}

.login-content .alert {
    margin: 0 0 20px 0;
    width: 100%;
    text-align: left;
}

/* Estilos para mensagens de sucesso */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Estilos para Página de Cadastro de Venda */
.container-venda {
    max-width: 800px;
    margin: 40px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.venda-header {
    text-align: center;
    margin-bottom: 30px;
}

.venda-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.venda-header p {
    color: #7f8c8d;
}

.form-venda {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-right: 15px;
}

.form-group:last-child {
    margin-right: 0;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-cancelar,
.btn-cadastrar {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancelar {
    background-color: #e74c3c;
    color: white;
    margin-right: 15px;
}

.btn-cadastrar {
    background-color: #2ecc71;
    color: white;
}

.btn-cancelar:hover {
    background-color: #c0392b;
}

.btn-cadastrar:hover {
    background-color: #27ae60;
}

/* Estilos para histórico de vendas */
.filtro-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filtro-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.filtro-grupo label {
    margin-bottom: 5px;
    color: #34495e;
}

.filtro-grupo select, 
.filtro-grupo input[type="text"],
.filtro-grupo input[type="date"] {
    padding: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.9em;
}

.filtro-botoes {
    display: flex;
    align-items: flex-end;
    margin-top: 20px;
}

.btn-filtrar, .btn-limpar {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-filtrar {
    background-color: #3498db;
    color: white;
    border: none;
}

.btn-filtrar:hover {
    background-color: #2980b9;
}

.btn-limpar {
    background-color: #e74c3c;
    color: white;
    border: none;
}

.btn-limpar:hover {
    background-color: #c0392b;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2em;
    margin: 0;
}

.filtros-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px 100px 20px 20px; /* Aumenta padding à direita */
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filtros-container.full-left {
    padding: 20px 20px 20px 0 !important;
    margin-left: -50px !important;
    width: calc(100% + 100px) !important;
}

/* Adiciona espa o   esquerda para que o   ltimo filtro n o fique muito perto do bot o de limpar. */
.filtros-container.full-left .filtro-row {
    margin-left: -250px !important;
    width: calc(100% + 200px) !important;
}

.filtros-container.full-left .filtro-grupo {
    margin-right: 15px;
}

.tabela-vendas {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabela-vendas th,
.tabela-vendas td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.tabela-vendas th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.tabela-vendas tr:nth-child(even) {
    background-color: #f9f9f9;
}

.paginacao {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.paginacao a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.paginacao a.pagina-atual {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.total-registros {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

/* Adicionar estilo para alinhar botões horizontalmente */
.botoes-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filtro-botoes {
    display: flex;
    align-items: flex-end;
    margin-top: 20px;
}

.page-header .btn-success {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    font-weight: bold;
}

/* Adicionar estilo de filtros para historico_revendas.php */
.historico-revendas-container .row.filtro-row {
    margin-left: -200px !important;
    width: calc(100% + 200px) !important;
}

.filtro-form .filtro-grupo {
    margin-bottom: 15px;
}

.filtro-form .filtro-grupo label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    display: block;
}

.filtro-form .filtro-grupo .form-control {
    border-color: #3498db;
    transition: border-color 0.3s ease;
}

.filtro-form .filtro-grupo .form-control:focus {
    border-color: #2980b9;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f4f6f7;
    --text-color: #2c3e50;
    --card-color: #ffffff;
}

.detalhes-venda {
    background-color: var(--card-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.card {
    margin-bottom: 2rem;
}

.card h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tabela-detalhes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.tabela-detalhes th {
    text-align: left;
    width: 40%;
    font-weight: 600;
    color: var(--primary-color);
    padding-right: 1rem;
}

.tabela-detalhes td {
    background-color: var(--background-color);
    padding: 0.75rem;
    border-radius: 6px;
}

.acoes-detalhes {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-voltar {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn-voltar:hover {
    background-color: #2980b9;
}

@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 0;
    }

    .detalhes-venda {
        padding: 1rem;
    }

    .tabela-detalhes th {
        width: 50%;
    }
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group input[type="text"] {
    flex-grow: 1;
    margin-right: 10px;
}

.btn-anexar {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px dashed #999;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-anexar i {
    margin-right: 8px;
}

.btn-anexar:hover {
    background-color: #e0e0e0;
    border-color: #666;
}

.btn-anexar.file-selected {
    background-color: #4CAF50;
    color: white;
}

.file-info {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.8em;
}

#file-selected {
    color: #4CAF50;
    font-weight: bold;
}

.comprovante-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.comprovante-link:hover {
    color: var(--secondary-color);
}

.comprovante-link i {
    margin-right: 5px;
    font-size: 1.2em;
}

/* Estilos para página de sucesso de registro */
body.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    font-family: Arial, sans-serif;
}

.success-container {
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.success-container h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 24px;
}

.success-container p {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

#countdown {
    font-size: 72px;
    color: #4CAF50;
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Estilo para horário em tabelas */
.tabela-vendas .text-muted {
    color: #6c757d;
    font-size: 0.8em;
    display: block;
    margin-top: 3px;
}

/* Classe para alinhar elementos à direita */
.text-right {
    text-align: right;
}

.align-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Classe para alinhar elementos com um leve deslocamento para a direita */
.text-slightly-right {
    text-align: left;
    margin-left: 100px;
}

.align-slightly-right {
    display: flex;
    justify-content: flex-start;
    padding-left: 100px;
}

/* Estilos específicos para o painel administrativo */
.admin-dashboard {
    background-color: #f4f6f9;
    padding: 20px;
    border-radius: 12px;
}

.admin-dashboard .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e6eb;
}

.admin-dashboard .page-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.admin-dashboard .dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.admin-dashboard .dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.admin-dashboard .dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.admin-dashboard .card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 36px;
    background-color: #4A90E2;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
    margin-left: auto;
    margin-right: auto;
}

.admin-dashboard .card-icon.sales { background-color: #4A90E2; }
.admin-dashboard .card-icon.users { background-color: #4ECDC4; }
.admin-dashboard .card-icon.inventory { background-color: #9C27B0; }
.admin-dashboard .card-icon.credits { background-color: #FF6B6B; }

.admin-dashboard .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.admin-dashboard .card-title {
    flex-grow: 1;
}

.admin-dashboard .card-title h3 {
    color: #2c3e50;
    font-size: 20px;
    margin: 0;
}

.admin-dashboard .card-title p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.admin-dashboard .card-stats {
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.stat-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    color: #333;
    font-weight: bold;
    font-size: 15px;
}

.admin-dashboard .card-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.admin-dashboard .btn {
    flex-grow: 1;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.admin-dashboard .btn-primary {
    background-color: #4A90E2;
    color: white;
}

.admin-dashboard .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.admin-dashboard .btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .admin-dashboard .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* Estilos para histórico de revendas */
.historico-revendas-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.historico-revendas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.historico-revendas-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.historico-revendas-filtro {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.historico-revendas-tabela {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

.historico-revendas-tabela th {
    background-color: #f4f4f4;
    color: #2c3e50;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

.historico-revendas-tabela td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.historico-revendas-tabela tr:hover {
    background-color: #f9f9f9;
}

.historico-revendas-acoes {
    display: flex;
    gap: 5px;
}

.historico-revendas-paginacao {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.historico-revendas-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    color: #7f8c8d;
}

/* Estilos para Ranking de Vendedores */
.position-ranking {
    width: 50px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
}

.badge.bg-bronze {
    background-color: #cd7f32 !important;
    color: white;
}

.badge.gold {
    background-color: #ffd700 !important;
    color: #333;
}

.badge.silver {
    background-color: #c0c0c0 !important;
    color: #333;
}

.badge.bronze {
    background-color: #cd7f32 !important;
    color: white;
}

.ranking-table .table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

/* Estilos para Ranking de Vendedores */
.ranking-top-sellers {
    margin-bottom: 20px;
}

.ranking-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ranking-item {
    transition: all 0.3s ease;
    position: relative;
    background-color: #f8f9fa;
    padding: 10px 0;
}

.ranking-item:nth-child(even) {
    background-color: #f1f3f5;
}

.ranking-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

.ranking-position {
    width: 80px;
    vertical-align: middle !important;
}

.ranking-seller {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding-left: 15px;
}

.ranking-sales-count,
.ranking-sales-value,
.ranking-points {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    text-align: center;
    padding-right: 15px;
}

.ranking-sales-count {
    color: #007bff;
    min-width: 100px;
    text-align: center;
}

.ranking-sales-value {
    color: #28a745;
    font-weight: bold;
    min-width: 120px;
    text-align: right;
}

.ranking-points {
    color: #6f42c1;
    min-width: 100px;
    text-align: right;
}

.position-ranking {
    font-size: 0.9rem;
    padding: 5px 10px;
    margin: 0;
}

.position-ranking.gold {
    background-color: #ffd700 !important;
    color: #333 !important;
}

.position-ranking.silver {
    background-color: #c0c0c0 !important;
    color: #333 !important;
}

.position-ranking.bronze {
    background-color: #cd7f32 !important;
    color: white !important;
}

/* Adicionar espaçamento entre colunas */
.ranking-table th,
.ranking-table td {
    padding: 12px 15px !important;
}

/* Separar totais do nome */
.ranking-table .ranking-sales-count {
    border-left: 1px solid #e0e0e0;
}

#nome_comprovante_container, #anexo_comprovante_container {
    margin-bottom: 1px;
}

.login-repetido {
    background-color: #fff3cd;
    font-weight: bold;
}

.login-repetido a {
    color: #856404;
}

/* Estilo para linhas com pagamento pendente */
.linha-pendente td:not(:first-child) {
    color: red !important;
    background-color: #ffeeee !important;
}

.linha-pendente td:first-child {
    background-color: #ffeeee !important;
}

.meta-pontos .progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.meta-pontos .progress-bar {
    transition: width 1s ease-in-out;
}

.meta-pontos .progress-bar.bg-success {
    background-color: #4A90E2 !important; /* Azul meio claro */
}

.meta-pontos .progress-bar.bg-warning {
    background: linear-gradient(45deg, #ffc107, #ff9800);
}

.meta-pontos .text-success {
    color: #4A90E2 !important; /* Azul meio claro */
    font-weight: bold;
}

.meta-pontos .text-warning {
    color: #ffc107 !important;
    font-weight: bold;
}

/* Estilos para meta superada */
.meta-superada {
    background-color: rgba(74, 144, 226, 0.1);
    border: 2px dashed #4A90E2;
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: pulse-border 2s infinite;
}

.meta-superada .badge-estrela {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    animation: bounce 1s infinite;
}

.meta-superada p {
    color: #4A90E2;
    font-weight: bold;
    margin: 0;
}

.confete-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

@keyframes pulse-border {
    0%, 100% { border-color: #4A90E2; }
    50% { border-color: #7AB8EF; }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.confete {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #4A90E2;
    opacity: 0.7;
    animation: fall 3s linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.conquista-extraordinaria {
    background: linear-gradient(45deg, #4A90E2, #7AB8EF);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: pulse-gradient 3s infinite alternate;
}

.conquista-extraordinaria .container {
    position: relative;
    z-index: 2;
}

.conquista-extraordinaria .emoji-conquista {
    font-size: 3rem;
    display: block;
    margin-bottom: 5px;
    animation: bounce 1s infinite alternate;
}

.conquista-extraordinaria h3 {
    margin-bottom: 5px;
    color: #FFD700; /* Amarelo dourado para destaque */
    font-weight: bold;
    font-size: 1.2rem;
}

.conquista-extraordinaria p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

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

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.conquista-extraordinaria .confete-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.dashboard-spacer {
    height: 30px; /* Ajuste a altura conforme necessário */
    width: 100%;
}

.dashboard-user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initial {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.avatar-initial:hover {
    transform: scale(1.1);
}

.user-avatar {
    position: relative;
}

.avatar-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.avatar-image:hover {
    transform: scale(1.1);
}

.avatar-upload-form {
    margin-top: 10px;
}

.avatar-upload-form .btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

/* Estilos para Desbloquear Usuários */
.usuarios-bloqueados {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.usuario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.usuario-item:last-child {
    border-bottom: none;
}

.usuario-info {
    flex-grow: 1;
    margin-right: 15px;
}

.usuario-acoes {
    display: flex;
    gap: 10px;
}

.btn-desbloquear {
    background-color: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-desbloquear:hover {
    background-color: #218838;
}

/* Estilos para a página de Pendências */
.pendencias-container {
    background-color: var(--cor-fundo);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.pendencias-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--cor-primaria);
    padding-bottom: 10px;
}

.pendencias-header h1 {
    color: var(--cor-primaria);
    font-size: 1.8rem;
    margin: 0;
}

.pendencias-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

.pendencias-table thead {
    background-color: var(--cor-primaria);
    color: var(--cor-fundo);
}

.pendencias-table th,
.pendencias-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.pendencias-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.pendencias-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.pendencias-table tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.3s ease;
}

.pendencias-actions .btn {
    margin-right: 5px;
    padding: 6px 12px;
    font-size: 0.9rem;
}

.pendencias-actions .btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.pendencias-actions .btn-danger:hover {
    background-color: #c82333;
}

.pendencias-empty {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .pendencias-table {
        font-size: 0.9rem;
    }
    
    .pendencias-table th,
    .pendencias-table td {
        padding: 8px 10px;
    }
}

/* Estilos de Dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 15px;
    background-color: #f4f7f6;
}

.dashboard-header {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-info h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-badge {
    background-color: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.user-role {
    color: #666;
    margin: 5px 0 0;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    max-height: 1200px;
    overflow: hidden;
}

.dashboard-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-dashboard {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 20px;
    color: white;
    font-size: 30px;
    flex-shrink: 0;
}

.dashboard-card.blue .card-icon { background-color: #4A90E2; }
.dashboard-card.green .card-icon { background-color: #4ECDC4; }
.dashboard-card.purple .card-icon { background-color: #9C27B0; }

.card-title {
    flex-grow: 1;
}

.card-title h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
}

.card-title p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.card-stats {
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.stat-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    color: #333;
    font-weight: bold;
    font-size: 15px;
}

.card-actions {
    display: flex;
    padding: 20px;
    background-color: #ffffff;
    gap: 15px;
}

.btn {
    flex-grow: 1;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4A90E2;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Performance Section */
.performance-section {
    margin-bottom: 30px;
}

.performance-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: all 0.3s ease;
}

.performance-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.performance-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.performance-percentage {
    display: flex;
    align-items: center;
}

.percentage-value {
    font-size: 24px;
    font-weight: bold;
    color: #4A90E2;
}

.performance-progress {
    margin-bottom: 20px;
}

.progress-container {
    width: 100%;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background-color: #4ECDC4;
    position: relative;
    transition: width 0.8s ease-in-out;
}

.progress-indicator {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #4ECDC4;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3);
}

.progress-details {
    display: flex;
    justify-content: space-between;
}

.progress-current,
.progress-remaining {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-details .label {
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.progress-details .value {
    display: block;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

.performance-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.performance-goal .goal-label {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.performance-goal .goal-value {
    font-weight: bold;
    color: #333;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.warning {
    background-color: #FFC107;
    color: #fff;
}

.status-badge.info {
    background-color: #17A2B8;
    color: #fff;
}

.status-badge.success {
    background-color: #28A745;
    color: #fff;
}

/* Achievement Modal */
.achievement-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.5s ease-in-out;
}

.achievement-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-in-out;
}

.achievement-header {
    background-color: #4ECDC4;
    color: white;
    padding: 20px;
    text-align: center;
}

.achievement-header h2 {
    margin: 0;
    font-size: 24px;
}

.achievement-header p {
    margin: 10px 0 0;
    font-size: 16px;
    opacity: 0.9;
}

.achievement-body {
    display: flex;
    align-items: center;
    padding: 30px;
    background-color: #f9f9f9;
}

.achievement-trophy {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trophy-icon {
    font-size: 100px;
    animation: bounce 1s infinite;
}

.achievement-details {
    flex-grow: 1;
    padding-left: 30px;
}

.achievement-details h3 {
    margin: 0 0 15px;
    color: #333;
}

.achievement-details p {
    color: #666;
    margin-bottom: 20px;
}

.achievement-stats {
    display: flex;
    justify-content: center;
}

.stat {
    text-align: center;
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #333;
    font-weight: bold;
    font-size: 18px;
}

.achievement-footer {
    padding: 20px;
    text-align: center;
    background-color: #f1f3f5;
}

#close-achievement {
    padding: 12px 30px;
    font-size: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: scale(1);}
    40% {transform: scale(1.2);}
    60% {transform: scale(1.1);}
}

/* Responsividade para o Dashboard */
@media (max-width: 992px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-user-profile {
        flex-direction: column;
        align-items: center;
    }

    .user-avatar {
        margin-bottom: 15px;
    }

    .dashboard-info {
        text-align: center;
    }

    .performance-header {
        flex-direction: column;
        text-align: center;
    }

    .performance-percentage {
        margin-top: 10px;
    }

    .progress-details {
        flex-direction: column;
        align-items: center;
    }

    .progress-current,
    .progress-remaining {
        margin-bottom: 10px;
    }

    .performance-footer {
        flex-direction: column;
        text-align: center;
    }

    .performance-goal {
        margin-bottom: 10px;
    }

    .achievement-body {
        flex-direction: column;
        text-align: center;
    }

    .achievement-trophy {
        margin-bottom: 20px;
    }

    .achievement-details {
        padding-left: 0;
    }
}

.admin-dashboard .dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .admin-dashboard .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-dashboard .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* Estilos para a tabela de pendências */
.pendencias-container {
    margin-top: 20px;
}

.pendencias-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pendencias-container th, 
.pendencias-container td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.pendencias-container th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.pendencias-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

.pendencias-container tr:hover {
    background-color: #f5f5f5;
}

.pendencias-container .btn-group {
    display: flex;
    justify-content: center;
}

.pendencias-container .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.pendencias-container .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.pendencias-container .tooltip-container {
    position: relative;
    display: inline-block;
}

.pendencias-container .tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .pendencias-container table {
        font-size: 0.9rem;
    }
    
    .pendencias-container th, 
    .pendencias-container td {
        padding: 6px;
    }
}

/* Financial Page Specific Styles */
.financial-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px auto;
}
.form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.table-section {
    margin-top: 30px;
}
.table th {
    background: #f1f3f5;
    font-size: 0.9em;
}
.receitas {
    color: #28a745;
}
.despesas {
    color: #dc3545;
}
.anexo {
    color: #0d6efd;
}
.tipo-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
}
.tipo-rf {
    background: #e3f2fd;
    color: #0d47a1;
}
.tipo-rv {
    background: #e8f5e9;
    color: #1b5e20;
}
.tipo-df {
    background: #fbe9e7;
    color: #bf360c;
}
.tipo-dv {
    background: #fff3e0;
    color: #e65100;
}
.layout-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0 15px;
}
.main-content {
    flex: 1;
    max-width: calc(100% - 520px);
}
.side-panel {
    width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    padding: 25px;
    border-left: 4px solid #e9ecef;
    height: calc(100vh - 100px);
    overflow-y: auto;
}
.side-panel .nav-tabs {
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}
.side-panel .nav-tabs .nav-link {
    border: none;
    padding: 8px 12px;
    font-size: 0.9em;
    color: #6c757d;
}
.side-panel .nav-tabs .nav-link:hover {
    border: none;
    color: #495057;
}
.side-panel .nav-tabs .nav-link.active {
    border: none;
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    font-weight: 500;
}
.side-panel .tab-content {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}
.side-panel .table {
    font-size: 0.85em;
    margin-bottom: 0;
}
.side-panel .table td {
    padding: 8px;
    vertical-align: middle;
}
.side-panel .dataTables_wrapper .dataTables_length, 
.side-panel .dataTables_wrapper .dataTables_filter {
    margin-bottom: 10px;
}
.side-panel .dataTables_wrapper .dataTables_info {
    font-size: 0.85em;
    padding-top: 0.5em;
}
.side-panel .dataTables_wrapper .dataTables_paginate {
    font-size: 0.85em;
    padding-top: 0.5em;
}
.table {
    margin: 0;
}
.table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.9em;
    padding: 12px;
    border-bottom: 2px solid #dee2e6;
}
.table tbody td {
    padding: 12px;
    vertical-align: middle;
}
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}
.dataTables_wrapper .dataTables_filter input {
    padding: 6px 12px;
}

/* Estilos para página de sucesso do login */
.success-page {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(45deg, var(--cor-primaria), #45a049);
    font-family: 'Inter', sans-serif;
}

.loading-container {
    text-align: center;
    color: white;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--cor-primaria);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Customização do SweetAlert2 */
.swal2-popup {
    font-family: 'Inter', sans-serif !important;
    border-radius: 15px !important;
}

.swal2-title {
    color: var(--cor-texto-escuro) !important;
    font-size: 1.5em !important;
}

.swal2-html-container {
    color: #666 !important;
}

.swal2-timer-progress-bar {
    background: var(--cor-primaria) !important;
}

/* Estilos para o Resumo de Recebimentos */
.resumo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.resumo-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.resumo-column {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
}

.resumo-title {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.resumo-data {
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
}

.info-section {
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.info-section-title {
    font-weight: bold;
    color: #495057;
    margin-bottom: 8px;
}

.info-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.info-item {
    padding: 8px;
}

.info-label {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 4px;
}

.info-value {
    font-weight: bold;
    color: #212529;
}

.info-value.resumo-total {
    color: #28a745;
}

.info-value.resumo-ativacoes {
    color: #007bff;
}

.info-value.resumo-revendas {
    color: #6f42c1;
}

.btn-view-history {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    margin-left: 5px;
    transition: color 0.2s;
}

.btn-view-history:hover {
    color: #007bff;
}

/* Modal de Histórico */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

#modalTitulo {
    margin-top: 0;
    padding-right: 30px;
}

#modalConteudo {
    overflow-y: auto;
    max-height: calc(80vh - 100px);
    padding-right: 10px;
}

#modalConteudo::-webkit-scrollbar {
    width: 8px;
}

#modalConteudo::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#modalConteudo::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#modalConteudo::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.historico-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.historico-item:last-child {
    border-bottom: none;
}

.historico-item:hover {
    background-color: #f8f9fa;
}

/* Responsividade */
@media (max-width: 768px) {
    .resumo-container {
        flex-direction: column;
    }
    
    .resumo-column {
        margin-bottom: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Estilo personalizado para checkbox com ícone */
.checkbox-wrapper {
    position: relative;
    display: inline-block;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: #1E90FF;
    border-color: #1E90FF;
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-wrapper input[type="checkbox"]:disabled {
    background: #f8f9fa;
    border-color: #e2e6ea;
    cursor: not-allowed;
}

.checkbox-wrapper input[type="checkbox"]:checked:disabled {
    background: #e3f2fd;
    border-color: #bbdefb;
}

.checkbox-wrapper input[type="checkbox"]:checked::after,
.checkbox-wrapper input[type="checkbox"]:disabled::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    color: white;
}

.checkbox-wrapper input[type="checkbox"]:disabled::after {
    color: green;
}

/* Estilos para os cards financeiros */
.financial-card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.financial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.financial-card .rounded-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.financial-card h4 {
    font-weight: 600;
}

.financial-card h6 {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ajustes para o grupo de botões */
.btn-group {
    border-radius: 8px;
    overflow: hidden;
}

.btn-group .btn {
    padding: 10px 20px;
    border-width: 1px;
    font-weight: 500;
}