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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f0e0d6;
    min-height: 100vh;
    color: #800000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 20px;
    background: #f0e0d6;
    border: 1px solid #b7a89e;
    padding: 10px;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #800000;
    font-weight: bold;
}

header p {
    font-size: 1rem;
    color: #800000;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-container {
    background: #f0e0d6;
    border: 1px solid #b7a89e;
    padding: 10px;
    text-align: center;
}

#image-wrapper {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cat-image {
    max-width: 100%;
    max-height: 600px;
    border: 1px solid #b7a89e;
    display: none;
}

#cat-image.loaded {
    display: block;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #800000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0e0d6;
    border-top: 4px solid #800000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.no-images {
    text-align: center;
    color: #800000;
    font-size: 1.2rem;
}

.no-images p:first-child {
    font-size: 3rem;
    margin-bottom: 10px;
}

.wallet-section {
    background: #f0e0d6;
    border: 1px solid #b7a89e;
    padding: 10px;
}

.wallet-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #800000;
    font-size: 1.5rem;
    font-weight: bold;
}

.wallets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.wallet-card {
    background: #f0e0d6;
    border: 1px solid #b7a89e;
    padding: 10px;
}

.wallet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.crypto-icon {
    font-size: 1.5rem;
}

.wallet-header h3 {
    font-size: 1.2rem;
    color: #800000;
    font-weight: bold;
}

.wallet-address {
    background: #f0e0d6;
    border: 1px solid #b7a89e;
    padding: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-address code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    color: #800000;
}

.copy-btn {
    background: #f0e0d6;
    color: #800000;
    border: 1px solid #b7a89e;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: #e0d0c6;
}

.copy-btn:active {
    background: #d0c0b6;
}

.status-section {
    background: #f0e0d6;
    border: 1px solid #b7a89e;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.status-dot.connected {
    background: #008000;
}

.status-dot.disconnected {
    background: #ff0000;
}

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

.last-update {
    color: #800000;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    margin-top: 20px;
    background: #f0e0d6;
    border: 1px solid #b7a89e;
    padding: 10px;
    color: #800000;
}

footer p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f0e0d6;
    color: #800000;
    border: 1px solid #b7a89e;
    padding: 10px 15px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #f0e0d6;
    color: #ff0000;
    border-color: #ff0000;
}

.notification.info {
    background: #f0e0d6;
    color: #0000ff;
    border-color: #0000ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 5px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .wallets {
        grid-template-columns: 1fr;
    }
    
    .status-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }
    
    .wallet-section h2 {
        font-size: 1.2rem;
    }
    
    .wallet-card {
        padding: 5px;
    }
    
    .crypto-icon {
        font-size: 1.2rem;
    }
}
