/**
 * BitcoinP2P Explorer - Estilos principais
 * Compilado dos arquivos HTML originais
 */

/* ====== VARIÁVEIS CSS ====== */
:root {
    --bp2p-primary-color: #FCAF3B;
    --bp2p-secondary-color: #1e3c72;
    --bp2p-text-color: #424242;
    --bp2p-border-color: #e0e0e0;
    --bp2p-background: rgba(255, 255, 255, 0.95);
    --bp2p-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --bp2p-gradient: linear-gradient(135deg, var(--bp2p-secondary-color) 0%, var(--bp2p-primary-color) 100%);
}

/* ====== EXPLORADOR MULTI-REDE ====== */
.elementor-crypto-balance {
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.crypto-container {
    width: 100%;
    max-width: 580px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin: 0 auto;
}

.crypto-header {
    text-align: center;
    margin-bottom: 32px;
}

.crypto-header h2 {
    color: var(--bp2p-primary-color, #FCAF3B);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.crypto-header p {
    color: #666;
    font-size: 16px;
}

.crypto-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    justify-content: center;
}

.crypto-tab {
    padding: 12px 24px;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crypto-tab.active {
    background: linear-gradient(135deg, var(--bp2p-secondary-color, #1e3c72) 0%, var(--bp2p-primary-color, #FCAF3B) 100%);
    color: white;
}

.crypto-tab:hover:not(.active) {
    background: var(--bp2p-primary-color, #FCAF3B);
    color: white;
}

.crypto-input-group {
    margin-bottom: 24px;
}

.crypto-input-group label {
    display: block;
    color: #424242;
    margin-bottom: 8px;
    font-weight: 500;
}

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

.crypto-input-wrapper i {
    position: absolute;
    left: 16px;
    color: #666;
}

.crypto-input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #999999;
    box-sizing: border-box;
}

.crypto-input-wrapper input:user-modified {
    color: #000000;
}

.crypto-input-wrapper input:not(:placeholder-shown):focus {
    color: #000000;
}

.crypto-input-wrapper input:focus {
    outline: none;
    border-color: var(--bp2p-secondary-color, #1e3c72);
    box-shadow: 0 0 0 3px rgba(29, 60, 114, 0.1);
}

#cryptoCheckBalance {
    width: 100%;
    padding: 16px;
    background: var(--bp2p-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#cryptoCheckBalance:hover {
    opacity: 0.9;
}

#cryptoCheckBalance:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#cryptoShareButton {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FCAF3B 0%, #1e3c72 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

#cryptoShareButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 175, 59, 0.2);
}

#cryptoShareButton:active {
    transform: translateY(0);
}

#cryptoShareButton i {
    font-size: 18px;
}

.crypto-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    display: none;
}

.crypto-balance-card {
    background: linear-gradient(135deg, var(--bp2p-secondary-color) 0%, var(--bp2p-primary-color) 100%);
    padding: 24px;
    border-radius: 16px;
    color: white;
    margin-top: 16px;
    display: none;
    animation: fadeIn 0.5s ease-out;
    max-height: 500px;
    overflow-y: auto;
}

.crypto-balance-card.visible {
    display: block;
}

.crypto-balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.crypto-balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.crypto-balance-address {
    font-size: 12px;
    opacity: 0.8;
    word-break: break-all;
    color: white;
}

.crypto-transaction-card {
    background: linear-gradient(135deg, var(--bp2p-secondary-color) 0%, var(--bp2p-primary-color) 100%);
    padding: 24px;
    border-radius: 16px;
    color: white;
    margin-top: 16px;
    display: none;
    animation: fadeIn 0.5s ease-out;
    max-height: 500px;
    overflow-y: auto;
}

.crypto-transaction-card.visible {
    display: block;
}

.crypto-tx-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.crypto-tx-item {
    font-size: 12px;
    opacity: 0.8;
    word-break: break-all;
    margin-bottom: 16px;
    font-size: 14px;
    position: relative;
}

.crypto-tx-item span {
    font-weight: 600;
    margin-right: 8px;
    opacity: 0.9;
}

.crypto-tx-item .taxa {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.crypto-tx-item .expectativa {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 4px;
}

.crypto-tx-item a {
    color: #FCAF3B;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.crypto-tx-item a:hover {
    opacity: 0.8;
}

.troco-tag {
    background-color: rgba(252, 175, 59, 0.7);
    color: #fff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
}

.crypto-tx-section {
    margin-top: 16px;
    font-weight: 600;
    color: white;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.crypto-tx-value {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-top: 2px;
    margin-left: 20px;
}

.crypto-error {
    margin-top: 16px;
    padding: 12px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

/* ====== MODAL DE COMPARTILHAMENTO ====== */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.share-modal-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
}

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

.share-header h3 {
    margin: 0;
    color: var(--bp2p-secondary-color, #1e3c72);
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.share-option {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.share-option:hover {
    background: #f5f5f5;
}

.share-option i {
    font-size: 24px;
}

.share-link {
    display: flex;
    gap: 8px;
}

.share-link input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.copy-button {
    padding: 8px 16px;
    background: var(--bp2p-primary-color, #FCAF3B);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ====== VERIFICADOR USDT TRC20 ====== */
.elementor-tron-usdt {
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.tron-container {
    width: 100%;
    max-width: 580px;
    background: var(--bp2p-background);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--bp2p-shadow);
    backdrop-filter: blur(10px);
    margin: 0 auto;
}

.tron-header {
    text-align: center;
    margin-bottom: 32px;
}

.tron-header h2 {
    color: var(--bp2p-secondary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
}

.tron-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.tron-input-group {
    margin-bottom: 24px;
}

.tron-input-group label {
    display: block;
    color: var(--bp2p-text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

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

.tron-input-wrapper i {
    position: absolute;
    left: 16px;
    color: #666;
    z-index: 1;
}

.tron-input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--bp2p-border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: var(--bp2p-text-color);
    background: white;
    box-sizing: border-box;
}

.tron-input-wrapper input:focus {
    outline: none;
    border-color: var(--bp2p-secondary-color);
    box-shadow: 0 0 0 3px rgba(29, 60, 114, 0.1);
}

#checkTransactions {
    width: 100%;
    padding: 16px;
    background: var(--bp2p-secondary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#checkTransactions:hover {
    background: #15325e;
    transform: translateY(-2px);
}

#checkTransactions:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#saveTransactions {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#saveTransactions:hover {
    background: #218838;
    transform: translateY(-2px);
}

#saveTransactions:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tron-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    display: none;
}

.transaction-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--bp2p-border-color);
    margin-top: 16px;
    animation: fadeIn 0.3s ease-out;
}

.transaction-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--bp2p-secondary-color);
    margin-bottom: 12px;
}

.transaction-info {
    color: #666;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.transaction-info a {
    color: var(--bp2p-secondary-color);
    text-decoration: none;
    word-break: break-all;
}

.transaction-info a:hover {
    text-decoration: underline;
}

.error-message {
    margin-top: 16px;
    padding: 12px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    font-size: 14px;
    animation: fadeIn 0.3s ease-out;
}

.bp2p-error {
    padding: 16px;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin: 16px 0;
}

/* ====== ANIMAÇÕES ====== */
@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

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

/* ====== TEMAS ====== */
.bp2p-theme-dark {
    --bp2p-background: rgba(33, 37, 41, 0.95);
    --bp2p-text-color: #f8f9fa;
    --bp2p-border-color: #495057;
}

.bp2p-theme-dark .crypto-container,
.bp2p-theme-dark .tron-container {
    background: var(--bp2p-background);
    color: var(--bp2p-text-color);
}

.bp2p-theme-dark .crypto-header p,
.bp2p-theme-dark .tron-header p {
    color: #adb5bd;
}

.bp2p-theme-dark .crypto-input-wrapper input,
.bp2p-theme-dark .tron-input-wrapper input {
    background: #495057;
    color: var(--bp2p-text-color);
    border-color: var(--bp2p-border-color);
}

.bp2p-theme-dark .crypto-balance-card,
.bp2p-theme-dark .crypto-transaction-card,
.bp2p-theme-dark .transaction-card {
    background: #495057;
    color: var(--bp2p-text-color);
    border-color: var(--bp2p-border-color);
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 768px) {
    .crypto-container,
    .tron-container {
        padding: 24px;
        margin: 16px;
        max-width: calc(100% - 32px);
    }

    .crypto-header h2,
    .tron-header h2 {
        font-size: 24px;
    }

    .crypto-tabs {
        justify-content: flex-start;
    }
    
    .crypto-tab {
        flex-shrink: 0;
        min-width: fit-content;
    }

    .share-modal-content {
        width: 95%;
        padding: 20px;
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .crypto-balance-amount {
        font-size: 24px;
    }

    .crypto-balance-address {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .crypto-container,
    .tron-container {
        padding: 20px;
        border-radius: 16px;
    }

    .crypto-header h2,
    .tron-header h2 {
        font-size: 20px;
    }

    .crypto-header p,
    .tron-header p {
        font-size: 14px;
    }

    .crypto-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .crypto-input-wrapper input,
    .tron-input-wrapper input {
        font-size: 14px;
        padding: 12px 14px 12px 44px;
    }

    #cryptoCheckBalance,
    #checkTransactions {
        padding: 14px;
        font-size: 14px;
    }

    .crypto-balance-amount {
        font-size: 20px;
    }

    .transaction-amount {
        font-size: 20px;
    }
}

/* ====== IMPRESSÃO ====== */
@media print {
    .share-modal,
    #cryptoShareButton,
    #saveTransactions,
    .crypto-tabs {
        display: none !important;
    }
    
    .crypto-container,
    .tron-container {
        box-shadow: none;
        background: white;
        border: 1px solid #ddd;
    }
} 