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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.wallet-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

#wallet-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-disconnected {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.status-connected {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #6ee7b7;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.wallet-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item label {
    font-weight: 500;
    color: #64748b;
}

.info-item span {
    font-family: 'Monaco', 'Menlo', monospace;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    flex: 1;
    min-width: 120px;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: #f59e0b;
    color: white;
}

.btn-secondary:hover {
    background: #d97706;
}

.btn-success {
    background: #059669;
    color: white;
    width: 100%;
}

.btn-success:hover {
    background: #047857;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.signature-section {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.signature-section h3 {
    margin-bottom: 1rem;
    color: #374151;
}

.message-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.message-content {
    font-family: 'Monaco', 'Menlo', monospace;
    background: white;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    word-break: break-all;
}

.success-section {
    text-align: center;
    padding: 2rem;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-section h3 {
    color: #166534;
    margin-bottom: 0.5rem;
}

.success-section p {
    color: #166534;
    margin-bottom: 1rem;
}

.success-details {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
    font-size: 0.875rem;
}

.success-details p {
    margin-bottom: 0.5rem;
}

.success-details span {
    font-family: 'Monaco', 'Menlo', monospace;
}

.error-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #fca5a5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-icon {
    font-size: 1.2rem;
}

.btn-close {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

footer {
    margin-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

.supported-wallets h4 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.wallet-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.wallet-icons img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .wallet-section {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        min-width: auto;
    }
    
    .error-message {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
} 