
:root {
    --primary-color: #ff3c78;
    --secondary-color: #3c9dff;
    --background-color: #f0f2f5;
    --container-bg: #ffffff;
    --text-color: #333;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --bonus-color: #ffbe3c;
}

body.dark-mode {
    --background-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #f0f2f5;
    --white: #2d2d2d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    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;
}

header {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem;
    width: 100%;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

.theme-toggle {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
}

.generator-section {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    transition: background-color 0.3s ease;
}

.lotto-set {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.lotto-set:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.lotto-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bonus-number {
    background-color: var(--bonus-color);
}

.plus-sign {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.generate-btn {
    margin-top: 2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.generate-btn:hover {
    background-color: #ff1f6b;
    transform: translateY(-2px);
}

.history-section {
    margin-top: 2rem;
    width: 100%;
}

h2 {
    text-align: center;
    color: var(--primary-color);
}

.history-list {
    display: grid;
    gap: 1rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--container-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

.history-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.history-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eee;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
}
