:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fffbfb;
    --accent-blue: #000000;
    --accent-purple: #000000;
    --accent-pink: #FF0000;
    --accent-cyan: #FF0000;
    --text-primary: #040404;
    --text-secondary: #dcdbdb;
    --text-dim: #b4b4b4;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    width: 100%;
}

.container {
    width: 100%;
    min-height: 100vh;
}

/* Auth Pages */
.auth-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

.auth-card {
    width: 100%;
    max-width: 370px;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;    
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    background: rgba(0, 0, 0, 0.192); /* Fundo preto translúcido */
    backdrop-filter: blur(6px);     /* Efeito de desfoque elegante */
}

.auth-logo {
    width: 250px;
    margin-bottom: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    border-color: red !important;
}

.auth-header h1 {
    font-size: 1.2rem;
    color: #f80404;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.auth-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #FF0000;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: #ff1313;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #FF0000;
    opacity: 1;
    transform: translateY(-1px);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.7rem;
    width: 100%;
}

.auth-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #FF0000;
}

/* Dashboard */
.dashboard-container {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-primary);
}

.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 1rem;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.user-greeting {
    display: flex;
    flex-direction: column;
}

.user-greeting h1 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.logout-link {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logout-link:hover {
    color: #FF0000;
}

.balance {
    text-align: right;
    padding: 0.5rem 1rem;
    border: 1px solid #000000;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
}

.balance span:first-child {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance .amount {
    font-size: 1.2rem;
    color: #000000;
    font-weight: 700;
}

.banner-container {
    padding: 1rem;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-height: 100px;
}

.banner-slider {
    position: relative;
    padding: 1rem;
    min-height: 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-slide {
    display: none;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem;
}

.banner-slide.active {
    display: flex;
    animation: slideIn 0.5s ease-out;
}

.banner-slide i {
    font-size: 1rem;
    color: #000000;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.banner-slide p {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.8rem;
}

.cashback-list {
    padding: 1rem;
    margin-top: 1rem;
    max-width: 1200px;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff !important;
}

.cashback-list h2 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    width: 95%;
}

.cashback-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    width: 95%;
    max-height: calc(100vh - 380px);
    overflow-y: auto;
    padding: 0.1rem 0.1rem 0.1rem 0;
    scroll-behavior: smooth;
    background-color: transparent !important;
}

.cashback-card {
    background: #ffffff !important;
    border-radius: 8px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    width: 100%;
    background-color: #ffffff !important;
    min-height: 80px; /* Altura mínima para garantir legibilidade */
}

.cashback-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 40px; /* Altura mínima para o cabeçalho */
}

.order-number {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.order-number i {
    color: #000000;
}

.date {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.date i {
    color: #FF0000;
}

.card-body {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40px; /* Altura mínima para o corpo */
}

.amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.amount .value {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.amount .type {
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.2;
}

.ganho .value {
    color: #000000;
}

.gasto .value {
    color: #FF0000;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Forçar cor branca em todos os dispositivos */
.cashback-card,
.cashback-card.ganho,
.cashback-card.gasto {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Regras específicas para dispositivos móveis */
@media (max-width: 767px) {
    .cashback-card,
    .cashback-card.ganho,
    .cashback-card.gasto {
        background-color: #ffffff !important;
        background: #ffffff !important;
    }
    
    .cashback-cards {
        background-color: transparent !important;
    }
}

/* Responsividade */
@media (min-width: 768px) {
    /* Remove the grid-template-columns override */
}

@media (min-width: 1024px) {
    /* Remove the grid-template-columns override */
}

.whatsapp-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
    text-align: center;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.2);
}

.whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
    background-color: #22c35e;
}

.whatsapp-link i {
    font-size: 1.5rem;
}

.whatsapp-link span {
    font-weight: 500;
}

.error-message {
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
    display: block;
}

.error {
    border-color: red !important;
}

/*.header-actions a {
    color: black;
}
.header-actions button {
    color: black;
}*/