/* Tema Preto e Amarelo - Pirâmide Crypto Investments */

/* Variáveis CSS */
:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --tertiary-black: #2a2a2a;
    --accent-yellow: #ffd700;
    --accent-yellow-dark: #ffb300;
    --accent-yellow-light: #fff176;
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
    --text-gray-dark: #b0b0b0;
    --border-yellow: rgba(255, 215, 0, 0.3);
    --shadow-yellow: rgba(255, 215, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    --gradient-yellow: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    --gradient-yellow-dark: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-primary);
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    height: 100%;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    background: var(--gradient-primary);
    background-attachment: fixed;
    height: 100%;
}

/* Tema Principal */
.dark-theme {
    background: var(--gradient-primary);
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
}

/* Garantir que não apareça fundo branco */
* {
    background-color: transparent;
}

html, body, #root, .app {
    background: var(--gradient-primary) !important;
    background-attachment: fixed !important;
}

/* Viewport e scroll */
body {
    background: var(--gradient-primary) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* Garantir fundo preto em qualquer scroll */
html {
    background: var(--primary-black) !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    pointer-events: none;
}

/* Cards */
.dark-card {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-yellow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-yellow);
}

.dark-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-yellow);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Textos */
.dark-text {
    color: var(--text-white);
    font-weight: 600;
}

.dark-text-secondary {
    color: var(--text-gray);
    font-weight: 500;
}

.dark-text-muted {
    color: var(--text-gray-dark);
    font-weight: 400;
}

/* Inputs */
.dark-input {
    background: rgba(26, 26, 26, 0.8) !important;
    border: 2px solid var(--border-yellow) !important;
    color: var(--text-white) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dark-input:focus {
    border-color: var(--accent-yellow) !important;
    box-shadow: 0 0 0 4px var(--shadow-yellow) !important;
    background: rgba(26, 26, 26, 0.9) !important;
    outline: none !important;
}

.dark-input::placeholder {
    color: var(--text-gray-dark) !important;
}

/* Forçar tema escuro em inputs específicos */
input[type="number"].dark-input,
input[type="text"].dark-input,
input[type="email"].dark-input,
input[type="password"].dark-input,
select.dark-input,
textarea.dark-input {
    background: rgba(26, 26, 26, 0.8) !important;
    border: 2px solid var(--border-yellow) !important;
    color: var(--text-white) !important;
}

input[type="number"].dark-input:focus,
input[type="text"].dark-input:focus,
input[type="email"].dark-input:focus,
input[type="password"].dark-input:focus,
select.dark-input:focus,
textarea.dark-input:focus {
    background: rgba(26, 26, 26, 0.9) !important;
    border-color: var(--accent-yellow) !important;
    box-shadow: 0 0 0 4px var(--shadow-yellow) !important;
    outline: none !important;
}

/* Tabelas */
.dark-table {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-yellow);
}

.dark-table th {
    background: rgba(10, 10, 10, 0.9);
    color: var(--accent-yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent-yellow);
}

.dark-table td {
    color: var(--text-white);
    border-color: var(--border-yellow);
    font-weight: 500;
}

.dark-table tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Botões */
.btn-primary {
    background: var(--gradient-yellow);
    color: var(--primary-black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-yellow);
}

.btn-primary:hover {
    background: var(--gradient-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-yellow);
}

.btn-secondary {
    background: rgba(26, 26, 26, 0.8);
    color: var(--accent-yellow);
    border: 2px solid var(--accent-yellow);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-yellow);
    color: var(--primary-black);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: var(--text-white);
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
}

/* Headers */
.header-primary {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    border-bottom: 3px solid var(--accent-yellow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-admin {
    background: linear-gradient(135deg, #7c2d12 0%, #991b1b 50%, #dc2626 100%);
    border-bottom: 3px solid var(--accent-yellow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Títulos */
.title-primary {
    background: var(--gradient-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 0 30px var(--shadow-yellow);
}

.title-secondary {
    color: var(--accent-yellow);
    font-weight: 700;
}

/* Ícones */
.icon-primary {
    color: var(--accent-yellow);
}

.icon-secondary {
    color: var(--accent-yellow-dark);
}

.icon-success {
    color: #10b981;
}

.icon-warning {
    color: #f59e0b;
}

.icon-danger {
    color: #ef4444;
}

.icon-info {
    color: #3b82f6;
}

/* Status Badges */
.status-confirmed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-weight: 600;
}

.status-processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 600;
}

/* Progress Bars */
.progress-bar {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-yellow);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    background: var(--gradient-yellow);
    height: 100%;
    transition: width 1s ease;
    box-shadow: 0 0 10px var(--shadow-yellow);
}

/* Modais */
.modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid var(--accent-yellow);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* Tabs */
.tab-button {
    color: var(--text-gray);
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: var(--accent-yellow);
    border-bottom-color: var(--accent-yellow);
}

.tab-button.active {
    color: var(--accent-yellow);
    border-bottom-color: var(--accent-yellow);
    font-weight: 700;
}

/* Cards de Estatísticas */
.stat-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-yellow);
}

.stat-icon {
    background: var(--gradient-yellow);
    color: var(--primary-black);
    box-shadow: 0 4px 15px var(--shadow-yellow);
}

.stat-value {
    color: var(--accent-yellow);
    font-weight: 800;
    text-shadow: 0 0 10px var(--shadow-yellow);
}

.stat-label {
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* Formulários */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-label .icon {
    color: var(--accent-yellow);
    margin-right: 0.5rem;
}

/* Alertas */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Links */
.link-primary {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-primary:hover {
    color: var(--accent-yellow-light);
    text-shadow: 0 0 10px var(--shadow-yellow);
}

/* Animações */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--shadow-yellow);
    }
    50% {
        box-shadow: 0 0 20px var(--shadow-yellow), 0 0 30px var(--shadow-yellow);
    }
}

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

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

.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsividade Mobile First */
@media (max-width: 480px) {
    /* Ajustes gerais para mobile */
    body {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Header mobile */
    .header-primary .container {
        padding: 1rem;
    }
    
    .header-primary h1 {
        font-size: 1.5rem;
    }
    
    .header-primary p {
        font-size: 0.8rem;
    }
    
    /* Cards de estatísticas - 1 coluna */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-card .flex {
        text-align: center;
    }
    
    .stat-card .p-4 {
        padding: 0.75rem;
        margin: 0 auto 0.5rem auto;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Criptomoedas - scroll horizontal otimizado */
    .crypto-scroll-container {
        padding-bottom: 0.5rem;
    }
    
    .crypto-scroll-container .stat-card {
        width: 280px;
        min-width: 280px;
        padding: 0.75rem;
    }
    
    /* Botões mobile */
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px; /* Tamanho mínimo para touch */
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Inputs mobile */
    .dark-input {
        padding: 0.75rem;
        font-size: 16px; /* Evita zoom no iOS */
        min-height: 44px;
    }
    
    /* Modais mobile */
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    
    /* Tabelas mobile - scroll horizontal */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .dark-table {
        min-width: 600px;
        font-size: 0.8rem;
    }
    
    .dark-table th,
    .dark-table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
    
    /* Formulários mobile */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    /* Títulos mobile */
    .title-primary {
        font-size: 1.5rem;
    }
    
    .title-secondary {
        font-size: 1.25rem;
    }
    
    /* Container principal */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Cards gerais */
    .dark-card {
        margin: 0.25rem;
        padding: 0.75rem;
    }
    
    /* Alertas mobile */
    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    /* Status badges mobile */
    .status-confirmed,
    .status-pending,
    .status-processing,
    .status-completed,
    .status-failed {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Progress bars mobile */
    .progress-bar {
        height: 14px;
    }
    
    /* Links mobile */
    .link-primary {
        font-size: 0.875rem;
        padding: 0.5rem;
        display: inline-block;
    }
    
    /* Tabs mobile */
    .tab-button {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* QR Code mobile */
    #qr-code-image {
        max-width: 200px;
        padding: 0.5rem;
    }
    
    /* Payment status mobile */
    .payment-status {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    /* Payment method buttons mobile */
    .payment-method-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    /* Notificações mobile */
    #notification-popup {
        left: 0.5rem;
        right: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
}

/* Tablets pequenos */
@media (max-width: 768px) and (min-width: 481px) {
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .crypto-scroll-container .stat-card {
        width: 300px;
        min-width: 300px;
    }
}

/* Tablets grandes */
@media (max-width: 1024px) and (min-width: 769px) {
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .crypto-scroll-container .stat-card {
        width: 320px;
        min-width: 320px;
    }
}

/* Desktop - manter layout original */
@media (min-width: 1025px) {
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-yellow);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-yellow-dark);
}

/* Seleção de texto */
::selection {
    background: var(--accent-yellow);
    color: var(--primary-black);
}

::-moz-selection {
    background: var(--accent-yellow);
    color: var(--primary-black);
}

/* Botões de Método de Pagamento */
.payment-method-btn {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.payment-method-btn.active {
    background: var(--accent-yellow);
    color: var(--primary-black);
    font-weight: 600;
}

.payment-method-btn:not(.active) {
    color: var(--text-gray);
}

.payment-method-btn:not(.active):hover {
    color: var(--accent-yellow);
    background: rgba(255, 215, 0, 0.1);
}

/* Formulários de Pagamento */
.payment-form {
    transition: all 0.3s ease;
}

/* QR Code Container */
#qr-code-image {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    display: inline-block;
}

/* Status de Pagamento */
.payment-status {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.payment-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.payment-status.approved {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.payment-status.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Clicable Cards */
.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:hover {
    /* Sem animações */
}

.cursor-pointer:active {
    /* Sem animações */
}

/* Scrollbar removida - apenas rolagem automática */

/* Container de rolagem */
.crypto-scroll-container {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    /* Desabilitar rolagem pela barra */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.crypto-scroll-container::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Popup de Notificação */
#notification-popup {
    animation: fadeInScale 0.3s ease-out;
}

#notification-popup.hidden {
    animation: fadeOutScale 0.3s ease-in;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}

/* Estilos para diferentes tipos de notificação */
.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

/* Estilos específicos para campos de quantidade no modal */
#manual_crypto_amount,
#pix_crypto_amount {
    background: rgba(26, 26, 26, 0.8) !important;
    border: 2px solid var(--border-yellow) !important;
    color: var(--text-white) !important;
    font-weight: 500;
}

#manual_crypto_amount:focus,
#pix_crypto_amount:focus {
    background: rgba(26, 26, 26, 0.9) !important;
    border-color: var(--accent-yellow) !important;
    box-shadow: 0 0 0 4px var(--shadow-yellow) !important;
    outline: none !important;
}

#manual_crypto_amount::placeholder,
#pix_crypto_amount::placeholder {
    color: var(--text-gray-dark) !important;
}
