:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #3700b3;
    --accent-hover: #6200ee;
    --success: #03dac6;
    --error: #cf6679;
    --warning: #ffb74d;
    --border: #2d2d2d;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
}

.card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn.primary {
    background-color: var(--accent);
    color: var(--text-primary);
}

.btn.primary:hover {
    background-color: var(--accent-hover);
}

.network-status {
    position: relative;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.fuse-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #333;
    transform: translateY(-50%);
    z-index: 0;
}

.fuse-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    transition: width 0.5s ease-in-out;
}

.fuse-line.burning::before {
    width: 100%;
}

.network {
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
}

.network h3 {
    margin-bottom: 1rem;
}

.balance {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.status {
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    background: #333;
    text-align: center;
}

.status.connected {
    background: #2d3748;
    color: #cbd5e0;
}

.status.success {
    background: #22543d;
    color: #c6f6d5;
}

.status.pending {
    background: #744210;
    color: #fbd38d;
}

.status.error {
    background: #742a2a;
    color: #fed7d7;
}

.address-display {
    background-color: var(--bg-primary);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-family: monospace;
    word-break: break-all;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .network-status {
        grid-template-columns: 1fr;
    }
}

.warning {
    background-color: rgba(255, 183, 77, 0.1);
    border-color: var(--warning);
    margin-bottom: 2rem;
}

.warning h2 {
    color: var(--warning);
}

.warning ul {
    list-style-position: inside;
    margin: 1rem 0;
}

.warning li {
    margin-bottom: 0.5rem;
}

.warning a {
    color: var(--warning);
    text-decoration: none;
}

.warning a:hover {
    text-decoration: underline;
}

.warning ul ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

input.error {
    border-color: var(--error);
}

.success-message {
    margin-top: 20px;
    text-align: center;
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Add explosion animation */
.network.boom::after {
    content: '💥';
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 24px;
    animation: explode 0.5s ease-out;
}

@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.tx-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.tx-links ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.tx-links a {
    color: #6B8AFF;
    text-decoration: none;
}

.tx-links a:hover {
    color: #89A3FF;
    text-decoration: underline;
} 