/* --- Dark Theme for LaughDAO --- */

:root {
    /* Color Palette */
    --bg-color: #1a1a1a;        /* Very dark grey background */
    --surface-color: #2c2c2c;   /* Slightly lighter surface (cards, headers) */
    --primary-color: #00ff00;   /* Neon green accent (like Pepe!) */
    --secondary-color: #ff00ff; /* Neon pink/magenta secondary accent */
    --text-color: #e0e0e0;      /* Light grey text */
    --text-muted-color: #888888;/* Dimmer text */
    --border-color: #444444;    /* Subtle borders */
    --link-color: var(--primary-color);
    --link-hover-color: #ffffff;
    --button-bg: var(--primary-color);
    --button-text: #000000;
    --button-hover-bg: #33ff33;
    --error-color: #ff4d4d;

    /* Typography */
    --font-family: 'Courier New', Courier, monospace; /* Memey/techy font */

    /* Spacing */
    --spacing-unit: 8px;
}

/* --- Global Resets & Defaults --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px; /* Base font size */
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed header height */
}

main {
    flex-grow: 1; /* Ensures main content pushes footer down */
    max-width: 1000px;
    margin: 0 auto; /* Center content */
    padding: calc(var(--spacing-unit) * 3);
    width: 95%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; text-align: center; }
h2 { font-size: 1.8rem; border-bottom: 1px solid var(--border-color); padding-bottom: var(--spacing-unit); }
h3 { font-size: 1.4rem; color: var(--secondary-color); }

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
    color: var(--link-hover-color);
    text-decoration: underline;
}

ul, ol {
    margin-left: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

li {
    margin-bottom: var(--spacing-unit);
}

button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    border-radius: 4px;
    text-transform: uppercase;
}

button:hover, button:focus {
    background-color: var(--button-hover-bg);
    outline: 2px solid var(--secondary-color);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0px);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: calc(var(--spacing-unit) * 3);
    background-color: var(--surface-color);
}

th, td {
    border: 1px solid var(--border-color);
    padding: calc(var(--spacing-unit) * 1.5);
    text-align: left;
}

th {
    background-color: #333; /* Slightly darker header */
    color: var(--primary-color);
    font-weight: bold;
}

tbody tr:nth-child(odd) {
    background-color: #252525; /* Subtle striping */
}

tbody tr:hover {
    background-color: #383838;
}

/* --- Layout Specific --- */
header {
    background-color: var(--surface-color);
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 3);
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Fixed header */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px; /* Fixed height */
}

header h1 {
    font-size: 1.8rem; /* Smaller for header */
    margin-bottom: 0;
    text-align: left;
}

nav ul {
    list-style: none;
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    margin: 0;
}

nav a {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
    font-size: 0.85rem;
}
.wallet-info p {
    margin: 0;
    color: var(--text-muted-color);
}
.wallet-info button {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    font-size: 0.9rem;
}


footer {
    background-color: var(--surface-color);
    color: var(--text-muted-color);
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
    border-top: 1px solid var(--border-color);
    margin-top: calc(var(--spacing-unit) * 4); /* Add space above footer */
    font-size: 0.9rem;
}

section {
    background-color: var(--surface-color);
    padding: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#token-info ul {
    list-style: none;
    margin-left: 0;
}
#token-info li {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}
#token-info strong {
    color: var(--primary-color);
}

/* --- Visual Effects (Example) --- */
.pulse {
  animation: pulse-animation 1s infinite;
}

@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: var(--spacing-unit);
        position: relative; /* Change from fixed for smaller screens */
    }
    body {
         padding-top: 0; /* No fixed header */
    }

    header h1 {
        margin-bottom: var(--spacing-unit);
    }

    nav ul {
        justify-content: center;
        margin-bottom: var(--spacing-unit);
    }
     .wallet-info {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .wallet-info p {
        text-align: center;
    }

    main {
        padding: calc(var(--spacing-unit) * 2);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}