
:root {
    --primary: #FFD700;
    --secondary: #8BC34A;
    --background: #1A120B;
    --card-bg: #2C1E14;
    --text: #FFF8E1;
    --accent: #FFB107;
    --light-background: #F5E8C7;
    --light-card-bg: #FFF3E0;
    --light-text: #4A2C0B;
    --light-accent: #D97706;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

body.light-theme {
    background: var(--light-background);
    color: var(--light-text);
}

body.light-theme .ant-card {
    background: var(--light-card-bg);
    border-color: var(--light-accent);
}

body.light-theme .ant-button {
    background: linear-gradient(45deg, var(--light-accent), var(--primary));
    color: var(--light-text);
}

body.light-theme .sidebar {
    background: var(--light-card-bg);
    border-color: var(--light-accent);
}

body.light-theme .ant-modal-content {
    background: var(--light-card-bg);
    border-color: var(--light-accent);
}

body.light-theme .hero-section {
    background: linear-gradient(135deg, var(--light-card-bg), var(--light-background));
    border-color: var(--light-accent);
}

body.light-theme .action-toast {
    background: var(--light-card-bg);
    border-color: var(--light-accent);
}

body.light-theme .progress-container {
    background: var(--light-card-bg);
    border-color: var(--light-accent);
}

body.light-theme .loading-screen {
    background: var(--light-background);
}

.ant-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ant-card {
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s, border-color 0.3s;
}

.ant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 177, 7, 0.3);
}

.ant-button {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    color: var(--background);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s, color 0.3s;
}

.ant-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.ant-button:disabled {
    background: #6B4E31;
    color: #A1887F;
    cursor: not-allowed;
    transform: none;
}

.ant-modal {
    background: rgba(0, 0, 0, 0.85);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ant-modal-content {
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    animation: fadeIn 0.3s ease;
}

.sidebar {
    background: var(--card-bg);
    border-right: 2px solid var(--accent);
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: -250px;
    transition: left 0.3s ease, background 0.3s, border-color 0.3s;
    z-index: 1001;
}

.sidebar.open {
    left: 0;
}

.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1002;
}

.hero-section {
    background: linear-gradient(135deg, var(--card-bg), var(--background));
    border-bottom: 2px solid var(--accent);
    padding: 4rem 0;
    text-align: center;
    transition: background 0.3s, border-color 0.3s;
}

.action-toast {
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1rem;
    max-width: 400px;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    animation: slideIn 0.5s ease-out;
    transition: background 0.3s, border-color 0.3s;
}

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--background);
    text-align: center;
    transition: background 0.3s;
}

.progress-container {
    width: 300px;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}

.progress-bar {
    height: 20px;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    transition: width 1s ease-in-out;
}

.pagination button {
    background: var(--accent);
    color: var(--background);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

.pagination button:disabled {
    background: #6B4E31;
    color: #A1887F;
}

.error-boundary {
    background: var(--card-bg);
    border: 2px solid red;
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem auto;
    max-width: 600px;
    text-align: center;
    transition: background 0.3s, border-color 0.3s;
}

.highlight-eth {
    color: var(--primary);
    font-weight: 600;
    background-color: rgba(255, 215, 0, 0.1); /* Subtle gold background */
    padding: 2px 4px;
    border-radius: 4px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
    from { top: -100px; opacity: 0; }
    to { top: 1rem; opacity: 1; }
}

@keyframes glow {
    0% { box-shadow: 0 0 10px var(--accent); }
    50% { box-shadow: 0 0 20px var(--accent); }
    100% { box-shadow: 0 0 10px var(--accent); }
}

@media (max-width: 768px) {
    .hero-section { padding: 2rem 0; }
    .sidebar { width: 200px; left: -200px; }
    .ant-container { padding: 0 0.5rem; }
}
