/* ===== ARTHUR CASHBACK - ESTILOS BASE PARA ELEMENTOR ===== */
/* Estilos podem ser sobrescritos pelo Elementor */

/* ===== WIDGET SALDO ===== */
.arthur-saldo-elementor {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a28 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
    transition: all 0.3s ease;
}

.arthur-saldo-elementor:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.35);
}

.arthur-saldo-titulo {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.arthur-saldo-icone {
    margin: 15px 0;
}

.arthur-saldo-icone i {
    font-size: 36px;
}

.arthur-saldo-subtitulo {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.85;
    margin-bottom: 8px;
}

.arthur-saldo-valor {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
}

.arthur-saldo-nivel {
    font-size: 14px;
    margin-bottom: 20px;
}

.arthur-saldo-nivel-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    margin-left: 8px;
}

.arthur-saldo-botao {
    display: inline-block;
    background: white;
    color: #ff6b35;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.arthur-saldo-botao:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
}

/* ===== WIDGET DASHBOARD ===== */
.arthur-dashboard {
    --ac-primary: #ff6b35;
    --ac-secondary: #e55a28;
    --ac-success: #10b981;
    --ac-text: #333;
}

.arthur-dashboard-header {
    background: linear-gradient(135deg, var(--ac-primary) 0%, var(--ac-secondary) 100%);
    padding: 30px;
    border-radius: 16px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

.arthur-dashboard-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: white;
}

.arthur-dashboard-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
    color: white;
}

/* Cards Grid */
.arthur-cards-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.arthur-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.arthur-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.arthur-card-primary {
    background: linear-gradient(135deg, var(--ac-primary) 0%, var(--ac-secondary) 100%);
    color: white;
    border: none;
}

.arthur-card-primary .card-label,
.arthur-card-primary .card-sublabel {
    color: rgba(255, 255, 255, 0.9) !important;
}

.arthur-card .card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.arthur-card .card-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
}

.arthur-card .card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--ac-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.arthur-card-primary .card-value {
    color: white !important;
}

.arthur-card .card-value-small {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.arthur-card .card-sublabel {
    font-size: 12px;
    color: #888;
}

/* Cores dos níveis VIP */
.nivel-bronze { color: #cd7f32 !important; }
.nivel-silver { color: #8e8e8e !important; }
.nivel-gold { color: #d4a017 !important; }
.nivel-platinum { color: #6b7280 !important; }

/* Barra Progresso */
.arthur-progresso-box {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.arthur-progresso-box h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
}

.arthur-progresso-bar {
    width: 100%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.arthur-progresso-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ac-primary) 0%, #ffa500 100%);
    border-radius: 6px;
    transition: width 0.8s ease;
}

.arthur-progresso-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

/* Histórico */
.arthur-historico-box {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.arthur-historico-titulo,
.arthur-historico-box h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
}

/* Tabela */
.arthur-tabela-wrap {
    overflow-x: auto;
}

.arthur-tabela {
    width: 100%;
    border-collapse: collapse;
}

.arthur-tabela th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #f0f0f0;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.arthur-tabela td {
    padding: 14px 12px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.arthur-tabela tr:hover td {
    background: #fafafa;
}

.cashback-valor {
    color: var(--ac-success, #10b981) !important;
    font-weight: 700;
}

/* Layout Cards no Histórico */
.arthur-historico-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.arthur-historico-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.arthur-historico-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--ac-primary);
}

.hist-card-titulo {
    font-weight: 600;
    margin-bottom: 8px;
}

.hist-card-data {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.hist-card-valor {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.hist-card-cashback {
    font-size: 22px;
    font-weight: 700;
    color: var(--ac-success, #10b981);
}

.hist-card-cashback small {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

/* Layout Lista */
.arthur-historico-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arthur-historico-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.arthur-historico-item:hover {
    background: #fafafa;
}

.arthur-historico-item .data {
    color: #888;
    font-size: 12px;
    margin-left: 12px;
}

/* Resgate */
.arthur-resgate-box {
    background: linear-gradient(135deg, #fff8f3 0%, #fff5ed 100%);
    border: 2px dashed var(--ac-primary, #ff6b35);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.arthur-resgate-box h3 {
    margin: 0 0 20px 0;
    color: var(--ac-primary, #ff6b35);
    font-size: 20px;
}

.arthur-form .form-row {
    margin-bottom: 16px;
}

.arthur-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.arthur-form input,
.arthur-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.arthur-form input:focus,
.arthur-form select:focus {
    outline: none;
    border-color: var(--ac-primary, #ff6b35);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Botões */
.arthur-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--ac-primary, #ff6b35);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.arthur-btn-primary {
    background: linear-gradient(135deg, var(--ac-primary, #ff6b35) 0%, var(--ac-secondary, #e55a28) 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.arthur-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
}

/* Mensagens */
.arthur-message-box {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.arthur-message-box h3 {
    margin: 0 0 16px 0;
    font-size: 22px;
}

.arthur-message-box p {
    color: #666;
    margin-bottom: 24px;
    font-size: 16px;
}

.empty-message {
    text-align: center;
    color: #888;
    padding: 30px;
    font-style: italic;
}

#resgate-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
}

#resgate-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

#resgate-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Responsivo */
@media (max-width: 768px) {
    .arthur-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .arthur-saldo-valor {
        font-size: 36px;
    }
    
    .arthur-tabela {
        font-size: 12px;
    }
    
    .arthur-tabela th,
    .arthur-tabela td {
        padding: 8px 6px;
    }
}
