:root {
    --bg-color: #1a1a2e;
    --container-color: #2a2a4e;
    --primary-color: #e94560;
    --secondary-color: #0f3460;
    --text-color: #ffffff;
    --number-bg-color: #16213e;
    --toggle-bg: #0f3460;
    --toggle-color: #ffffff;
}

body.light-mode {
    --bg-color: #f0f2f5;
    --container-color: #ffffff;
    --primary-color: #e94560;
    --secondary-color: #cfd8e3;
    --text-color: #1a1a2e;
    --number-bg-color: #e2e8f0;
    --toggle-bg: #e2e8f0;
    --toggle-color: #1a1a2e;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 4rem 1rem 3rem;
    box-sizing: border-box;
    gap: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C92AC' fill-opacity='0.1' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.23);
}

h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.numbers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.number {
    background-color: var(--number-bg-color);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.number.generated {
    transform: scale(1.1);
}

#generate {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

#generate:hover {
    background-color: #ff6384;
    box-shadow: 0 8px 25px rgba(255, 99, 132, 0.6);
    transform: translateY(-2px);
}

#generate:active {
    transform: translateY(1px);
}

.animal-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.animal-link:hover {
    opacity: 0.75;
}

#theme-toggle {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    background-color: var(--toggle-bg);
    color: var(--toggle-color);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 100;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

/* ── Contact Form ── */
.contact-container {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 15px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.23);
    transition: background-color 0.3s ease;
}

.contact-container h2 {
    color: var(--primary-color);
    margin: 0 0 1.5rem;
    font-size: 1.6rem;
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.85;
}

.form-group input,
.form-group textarea {
    background-color: var(--number-bg-color);
    color: var(--text-color);
    border: 1.5px solid transparent;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.3s ease;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    opacity: 0.45;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

#submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.85rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
    margin-top: 0.4rem;
}

#submit-btn:hover {
    background-color: #ff6384;
    box-shadow: 0 8px 25px rgba(255, 99, 132, 0.6);
    transform: translateY(-2px);
}

#submit-btn:active {
    transform: translateY(1px);
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#form-status {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

#form-status.success {
    color: #4caf50;
}

#form-status.error {
    color: #e94560;
}

/* ── Disqus ── */
.disqus-container {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 15px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.23);
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .container {
        width: 90%;
    }

    h1 {
        font-size: 2rem;
    }

    .numbers {
        gap: 0.5rem;
    }

    .number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    #generate {
        font-size: 1rem;
    }
}
