/* Treasure Web3 Dashboard - Premium Dark Mode */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #14151a;
    --bg-card: #1a1b23;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #4a90e2;
    --accent-success: #2ecc71;
    --accent-error: #e74c3c;
    --accent-warning: #f39c12;
    --border-color: #2a2b35;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Dashboard Container */
.treasure-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Wallet Card */
.treasure-wallet-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.treasure-wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.treasure-wallet-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.treasure-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--accent-primary);
    color: white;
}

.treasure-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.treasure-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.treasure-btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.treasure-btn-secondary:hover {
    background: var(--border-color);
}

/* Status Indicators */
.network-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.network-status.success {
    background: rgba(46, 204, 113, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.network-status.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-error);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.connection-status.connected {
    background: rgba(46, 204, 113, 0.1);
    color: var(--accent-success);
}

.connection-status.disconnected {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-error);
}

/* Wallet Address Display */
.treasure-wallet-address {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Modal */
.treasure-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.treasure-modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    min-width: 320px;
    border: 1px solid var(--border-color);
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-option:hover {
    background: var(--border-color);
    transform: translateX(4px);
}

.wallet-option img {
    width: 24px;
    height: 24px;
}

/* Notifications */
.treasure-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10001;
    max-width: 350px;
}

.treasure-notification.show {
    transform: translateX(0);
}

.treasure-notification.success {
    border-left: 4px solid var(--accent-success);
}

.treasure-notification.error {
    border-left: 4px solid var(--accent-error);
}

/* Responsive Design */
@media (max-width: 768px) {
    .treasure-dashboard {
        padding: 1rem;
    }
    
    .treasure-wallet-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .treasure-wallet-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .treasure-btn {
        width: 100%;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.treasure-loading {
    animation: pulse 1.5s ease-in-out infinite;
}