/* App Dashboard Styles */

/* Dashboard Section */
.dashboard-section {
    padding: 2rem 0 4rem;
    min-height: 100vh;
    background: var(--bg-primary);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.dashboard-title {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Stats Grid Dashboard */
.stats-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card-clickable {
    background: rgba(15, 22, 37, 0.8);
    border: 1px solid rgba(170, 255, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.6s ease;
}

.stat-card-clickable:hover {
    border-color: var(--accent-lime);
    background: rgba(170, 255, 0, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(170, 255, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(170, 255, 0, 0.3));
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--accent-green);
}

/* Dashboard Section Content */
.dashboard-section-content {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-inline {
    font-size: 1.8rem;
    color: var(--accent-lime);
    font-weight: 700;
    margin: 0;
}

.wallet-count-badge {
    padding: 0.4rem 1rem;
    background: rgba(170, 255, 0, 0.1);
    border: 1px solid var(--accent-lime);
    border-radius: 20px;
    color: var(--accent-lime);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Wallets Table */
.wallets-table-container {
    background: rgba(15, 22, 37, 0.6);
    border: 1px solid rgba(170, 255, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    overflow-x: auto;
}

.wallets-table {
    width: 100%;
    border-collapse: collapse;
}

.wallets-table thead {
    background: rgba(170, 255, 0, 0.05);
}

.wallets-table th {
    padding: 1rem;
    text-align: left;
    color: var(--accent-lime);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(170, 255, 0, 0.2);
}

.wallets-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(170, 255, 0, 0.1);
    color: var(--text-secondary);
}

.wallet-row {
    transition: all 0.3s ease;
}

.wallet-row:hover {
    background: rgba(170, 255, 0, 0.03);
}

.wallet-address-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-weight: 500;
}

.copy-btn {
    background: transparent;
    border: 1px solid rgba(170, 255, 0, 0.3);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    border-color: var(--accent-lime);
    background: rgba(170, 255, 0, 0.1);
}

.wallet-type-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-type-badge.whale {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.wallet-type-badge.smart-money {
    background: rgba(170, 255, 0, 0.2);
    color: var(--accent-lime);
    border: 1px solid rgba(170, 255, 0, 0.4);
}

.wallet-type-badge.regular {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.win-rate-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.win-rate-value.high {
    color: var(--accent-green);
}

.win-rate-value.medium {
    color: var(--accent-lime);
}

.win-rate-value.low {
    color: var(--accent-yellow);
}

.btn-view-wallet {
    padding: 0.5rem 1rem;
    background: rgba(170, 255, 0, 0.1);
    border: 1px solid var(--accent-lime);
    border-radius: 6px;
    color: var(--accent-lime);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-wallet:hover {
    background: var(--accent-lime);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Top Wallets Grid */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(170, 255, 0, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--accent-lime);
    color: var(--accent-lime);
}

.filter-tab.active {
    background: var(--gradient);
    border-color: transparent;
    color: var(--bg-primary);
}

.top-wallets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.top-wallet-card {
    background: rgba(15, 22, 37, 0.6);
    border: 1px solid rgba(170, 255, 0, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.6s ease;
}

.top-wallet-card:hover {
    border-color: var(--accent-lime);
    background: rgba(170, 255, 0, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(170, 255, 0, 0.15);
}

.top-wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.top-wallet-rank {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-wallet-address {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.top-wallet-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.top-wallet-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label-small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

.stat-value-highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-view-wallet-small {
    width: 100%;
    padding: 0.6rem;
    background: rgba(170, 255, 0, 0.1);
    border: 1px solid var(--accent-lime);
    border-radius: 8px;
    color: var(--accent-lime);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-wallet-small:hover {
    background: var(--accent-lime);
    color: var(--bg-primary);
}

/* Utility Card Inline */
.utility-card-inline {
    background: rgba(15, 22, 37, 0.6);
    border: 1px solid rgba(170, 255, 0, 0.15);
    border-radius: 16px;
    padding: 2rem;
}

.utility-header-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.utility-icon-small {
    font-size: 2rem;
}

.utility-title-inline {
    color: var(--accent-lime);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.utility-description-small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.utility-form-inline {
    display: flex;
    gap: 1rem;
}

.wallet-input-inline {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(170, 255, 0, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.wallet-input-inline:focus {
    outline: none;
    border-color: var(--accent-lime);
    background: rgba(170, 255, 0, 0.05);
    box-shadow: 0 0 15px rgba(170, 255, 0, 0.2);
}

.btn-small {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.wallet-results-inline {
    margin-top: 1rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.wallet-results-inline.active {
    display: block;
}

/* Coming Soon Cards Small */
.features-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.coming-soon-card-small {
    background: rgba(15, 22, 37, 0.6);
    border: 1px solid rgba(170, 255, 0, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.coming-soon-card-small:hover {
    border-color: var(--accent-lime);
    background: rgba(170, 255, 0, 0.05);
    transform: translateY(-3px);
}

.coming-soon-icon-small {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    opacity: 0.7;
}

.coming-soon-card-small h4 {
    color: var(--accent-lime);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.coming-soon-badge-small {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(170, 255, 0, 0.1);
    border: 1px solid var(--accent-lime);
    border-radius: 12px;
    color: var(--accent-lime);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Wallet Modal */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    padding: 2rem;
}

.wallet-modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(170, 255, 0, 0.3);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(170, 255, 0, 0.2);
}

.wallet-modal-header h3 {
    color: var(--accent-lime);
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(170, 255, 0, 0.1);
    color: var(--accent-lime);
}

.wallet-modal-body {
    padding: 2rem;
}

.wallet-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(170, 255, 0, 0.1);
}

.wallet-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.detail-value.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.wallet-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(170, 255, 0, 0.2);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-close-btn {
    padding: 0.8rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }

    .stats-grid-dashboard {
        grid-template-columns: 1fr;
    }

    .wallets-table {
        font-size: 0.85rem;
    }

    .wallets-table th,
    .wallets-table td {
        padding: 0.8rem 0.5rem;
    }

    .top-wallets-grid {
        grid-template-columns: 1fr;
    }

    .utility-form-inline {
        flex-direction: column;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tabs {
        width: 100%;
    }

    .filter-tab {
        flex: 1;
    }
}
