/* ══════════════════════════════════════════════════════════════════════════════
   ROBINHOOD SITE THEME - CSS compartilhado para todas as páginas do site
   ══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   OVERRIDE AGRESSIVO - Converte tema cyan para verde Robinhood
   ═══════════════════════════════════════════════════════════════════════ */

/* Override das variáveis antigas do tema cyan */
:root {
    /* Substituir cyan por verde Robinhood */
    --primary-dark: #0a0f0d !important;
    --secondary-dark: #0d1410 !important;
    --cyan-bright: #0084FF !important;
    --cyan-glow: #4DA3FF !important;
    --cyan-dark: #0066CC !important;
    --dark-teal: #111916 !important;
    --text-cyan: #0084FF !important;
    --text-light: #a0a8a4 !important;
    --text-white: #e8e9ea !important;
    --card-glass: rgba(17, 25, 22, 0.8) !important;
    --input-bg: rgba(21, 29, 25, 0.9) !important;
    --border-cyan: rgba(0, 132, 255, 0.3) !important;
    --warning-yellow: #ffa94d !important;
    --error-red: #ff4757 !important;
    --success-green: #0084FF !important;
}

/* Override do body para tema escuro */
body {
    background: linear-gradient(135deg, #0a0f0d 0%, #0d1a14 50%, #0a1210 100%) !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
}

/* Override de elementos com cor cyan para verde */
[style*="00ffcc"],
[style*="#00ffcc"],
[style*="rgb(0, 255, 204)"] {
    color: #0084FF !important;
}

/* Override de bordas cyan */
[style*="border"][style*="00ffcc"],
[style*="border"][style*="#00ffcc"] {
    border-color: rgba(0, 132, 255, 0.3) !important;
}

/* Override de shadows cyan */
[style*="shadow"][style*="00ffcc"],
[style*="shadow"][style*="#00ffcc"] {
    box-shadow: 0 0 20px rgba(0, 132, 255, 0.3) !important;
}

/* Cards e containers */
.card,
.info-card,
.main-card,
.stats-card,
.password-card,
.security-card,
.history-card,
.team-card,
.balance-card,
[class*="card"] {
    background: #111916 !important;
    border-color: rgba(0, 132, 255, 0.2) !important;
}

/* Headers */
.header,
.main-header,
.page-header,
[class*="header"] {
    background: #111916 !important;
    border-color: rgba(0, 132, 255, 0.2) !important;
}

/* Inputs */
input,
textarea,
select,
.input-field,
.form-control {
    background: #151d19 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e8e9ea !important;
}

input:focus,
textarea:focus,
select:focus,
.input-field:focus,
.form-control:focus {
    border-color: #0084FF !important;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15) !important;
}

/* Buttons primários */
.btn-primary,
.confirm-button,
.submit-btn,
.action-btn,
button[class*="primary"],
[class*="confirm"] {
    background: linear-gradient(135deg, #0084FF 0%, #4DA3FF 100%) !important;
    border-color: #0084FF !important;
    color: #000 !important;
}

/* Labels */
.input-label,
.form-label,
label {
    color: #a0a8a4 !important;
}

/* Textos destacados */
.highlight,
.value,
.amount,
[class*="value"],
[class*="amount"] {
    color: #0084FF !important;
}

/* Status badges */
.status-success,
.badge-success,
[class*="success"] {
    background: rgba(0, 132, 255, 0.15) !important;
    color: #0084FF !important;
}

.status-pending,
.badge-warning,
[class*="pending"],
[class*="warning"] {
    background: rgba(255, 169, 77, 0.15) !important;
    color: #ffa94d !important;
}

.status-error,
.status-failed,
.badge-danger,
[class*="error"],
[class*="failed"],
[class*="danger"] {
    background: rgba(255, 71, 87, 0.15) !important;
    color: #ff4757 !important;
}

/* Ícones */
.icon,
[class*="icon"] i,
.bi {
    color: #0084FF;
}

/* Menu toggle */
.menu-toggle,
.toggle-btn {
    background: #111916 !important;
    border-color: rgba(0, 132, 255, 0.2) !important;
    color: #0084FF !important;
}

/* Overlay de menu */
.side-menu,
.menu-overlay {
    background: #0d1410 !important;
}

/* Links */
a {
    color: #0084FF !important;
}

a:hover {
    color: #4DA3FF !important;
}

:root {
    /* Cores principais */
    --rh-bg-primary: #0a0f0d;
    --rh-bg-secondary: #0d1410;
    --rh-bg-card: #111916;
    --rh-bg-elevated: #151d19;
    --rh-bg-hover: #1a241f;
    
    /* Verde Robinhood */
    --rh-green: #0084FF;
    --rh-green-light: #4DA3FF;
    --rh-green-dark: #0066CC;
    --rh-green-glow: rgba(0, 132, 255, 0.3);
    --rh-green-subtle: rgba(0, 132, 255, 0.1);
    
    /* Textos */
    --rh-text-primary: #e8e9ea;
    --rh-text-secondary: #a0a8a4;
    --rh-text-muted: #6c7670;
    
    /* Bordas */
    --rh-border: rgba(255, 255, 255, 0.06);
    --rh-border-highlight: rgba(0, 132, 255, 0.2);
    
    /* Status */
    --rh-success: #0084FF;
    --rh-warning: #ffa94d;
    --rh-danger: #ff4757;
    --rh-info: #339af0;
    
    /* Tipografia */
    --rh-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --rh-font-display: 'DM Sans', var(--rh-font);
    
    /* Radius */
    --rh-radius-sm: 8px;
    --rh-radius-md: 12px;
    --rh-radius-lg: 16px;
    --rh-radius-xl: 20px;
}

/* ═══ BASE ═══ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--rh-font);
    background: linear-gradient(180deg, var(--rh-bg-secondary) 0%, var(--rh-bg-primary) 50%, #081210 100%);
    background-attachment: fixed;
    color: var(--rh-text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: var(--rh-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--rh-green-light);
}

/* ═══ NETWORK CANVAS ═══ */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ═══ LOADING ═══ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rh-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--rh-border);
    border-top-color: var(--rh-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══ HEADER ═══ */
.main-header {
    position: relative;
    z-index: 10;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--rh-bg-card);
    border-bottom: 1px solid var(--rh-border);
}

.header-back {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--rh-text-primary);
    text-decoration: none;
    font-weight: 600;
}

.header-back i {
    font-size: 1.25rem;
    color: var(--rh-green);
}

.page-title {
    font-family: var(--rh-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rh-text-primary);
}

/* ═══ CONTENT ═══ */
.main-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    padding-bottom: 100px;
    max-width: 600px;
    margin: 0 auto;
}

/* ═══ CARDS ═══ */
.card {
    background: var(--rh-bg-card);
    border: 1px solid var(--rh-border-highlight);
    border-radius: var(--rh-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rh-border);
}

.card-title {
    font-family: var(--rh-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rh-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--rh-green);
}

/* ═══ STATS ═══ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-item {
    background: var(--rh-bg-elevated);
    border-radius: var(--rh-radius-md);
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-family: var(--rh-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rh-green);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--rh-text-secondary);
}

/* ═══ LISTS ═══ */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--rh-border);
}

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

.list-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-item-icon {
    width: 40px;
    height: 40px;
    background: var(--rh-green-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rh-green);
    font-size: 1.125rem;
}

.list-item-text {
    display: flex;
    flex-direction: column;
}

.list-item-title {
    font-weight: 600;
    color: var(--rh-text-primary);
}

.list-item-subtitle {
    font-size: 0.8125rem;
    color: var(--rh-text-secondary);
}

.list-item-value {
    font-family: var(--rh-font-display);
    font-weight: 700;
    color: var(--rh-green);
}

/* ═══ FORMS ═══ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rh-text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--rh-bg-elevated);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius-md);
    color: var(--rh-text-primary);
    font-family: var(--rh-font);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--rh-green);
    box-shadow: 0 0 0 3px var(--rh-green-subtle);
}

.form-input::placeholder {
    color: var(--rh-text-muted);
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--rh-radius-md);
    font-family: var(--rh-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rh-green) 0%, var(--rh-green-light) 100%);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--rh-green-glow);
}

.btn-secondary {
    background: var(--rh-bg-elevated);
    color: var(--rh-text-primary);
    border: 1px solid var(--rh-border);
}

.btn-secondary:hover {
    border-color: var(--rh-green);
    color: var(--rh-green);
}

.btn-block {
    width: 100%;
}

/* ═══ BADGES ═══ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: var(--rh-green-subtle);
    color: var(--rh-success);
}

.badge-warning {
    background: rgba(255, 169, 77, 0.15);
    color: var(--rh-warning);
}

.badge-danger {
    background: rgba(255, 71, 87, 0.15);
    color: var(--rh-danger);
}

.badge-info {
    background: rgba(51, 154, 240, 0.15);
    color: var(--rh-info);
}

/* ═══ TABLES ═══ */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rh-text-muted);
    border-bottom: 1px solid var(--rh-border);
}

.table td {
    padding: 14px 12px;
    font-size: 0.875rem;
    color: var(--rh-text-primary);
    border-bottom: 1px solid var(--rh-border);
}

.table tr:last-child td {
    border-bottom: none;
}

/* ═══ EMPTY STATE ═══ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--rh-text-muted);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--rh-text-primary);
    margin-bottom: 8px;
}

.empty-state-text {
    color: var(--rh-text-secondary);
}

/* ═══ ALERTS ═══ */
.alert {
    padding: 14px 16px;
    border-radius: var(--rh-radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: var(--rh-green-subtle);
    border: 1px solid rgba(0, 132, 255, 0.3);
    color: var(--rh-success);
}

.alert-warning {
    background: rgba(255, 169, 77, 0.1);
    border: 1px solid rgba(255, 169, 77, 0.3);
    color: var(--rh-warning);
}

.alert-danger {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--rh-danger);
}

/* ═══ TRANSACTION HISTORY ═══ */
.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--rh-bg-elevated);
    border-radius: var(--rh-radius-md);
    margin-bottom: 12px;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.transaction-icon.deposit {
    background: var(--rh-green-subtle);
    color: var(--rh-green);
}

.transaction-icon.withdraw {
    background: rgba(255, 71, 87, 0.15);
    color: var(--rh-danger);
}

.transaction-details {
    display: flex;
    flex-direction: column;
}

.transaction-type {
    font-weight: 600;
    color: var(--rh-text-primary);
}

.transaction-date {
    font-size: 0.8125rem;
    color: var(--rh-text-secondary);
}

.transaction-amount {
    text-align: right;
}

.transaction-value {
    font-family: var(--rh-font-display);
    font-weight: 700;
    font-size: 1.125rem;
}

.transaction-value.positive {
    color: var(--rh-green);
}

.transaction-value.negative {
    color: var(--rh-danger);
}

.transaction-status {
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ═══ COPY BUTTON ═══ */
.copy-container {
    display: flex;
    gap: 8px;
}

.copy-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--rh-bg-elevated);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius-md);
    color: var(--rh-text-primary);
    font-family: var(--rh-font);
    font-size: 0.875rem;
}

.copy-btn {
    padding: 12px 16px;
    background: var(--rh-green);
    border: none;
    border-radius: var(--rh-radius-md);
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--rh-green-light);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .card {
        padding: 20px;
    }
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--rh-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--rh-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rh-text-muted);
}

