/* --- Core Styles --- */
:root {
    --primary: #27ae60;
    --primary-dark: #219150;
    --secondary: #31734e;
    --bg-light: #e8f6e9;
    --text-main: #333;
    --text-light: #555;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gold: #f1c40f;
    --bg-gradient-green: linear-gradient(135deg, #f1f8e9 0%, #c8e6c9 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.6;
    background: #cfca96;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Navigation --- */
header {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 770px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: orange;
}

/* --- DROPDOWN MENU STYLES (NEW) --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-main) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Language Buttons --- */
.lang-group {
    display: flex;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.lang-btn,
.lang-btn-mobile {
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
    border: none;
}

.lang-btn:not(:disabled),
.lang-btn-mobile:not(:disabled) {
    background-color: var(--primary);
    color: var(--white);
}

.lang-btn:not(:disabled):hover,
.lang-btn-mobile:not(:disabled):hover {
    background-color: var(--primary-dark);
}

.lang-btn:disabled,
.lang-btn-mobile:disabled {
    background-color: #e0e0e0;
    color: #000000 !important;
    cursor: default;
    opacity: 1;
    box-shadow: none;
}

.lang-btn {
    padding: 5px 12px;
    margin: 0;
    border-radius: 0;
}

.mobile-lang-container {
    display: none;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.lang-btn-mobile {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.cta-btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-btn:hover {
    background-color: var(--primary-dark);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Sections --- */
.home {
    padding: 140px 0 80px;
    background: var(--bg-gradient-green);
    text-align: center;
}

.home h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
    line-height: 1.2;
}

.home p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

.home-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.ok-btn {
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s;
}

.ok-btn {
    background-color: rgb(39, 174, 96);
    color: white;
}


.ok-btn:hover {
    background-color: rgb(59, 190, 113);
}

.ok-btn:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* For Start, Create & Finish) */
.btn-action {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    transition: filter 0.2s;
    background-color: rgb(39, 174, 96) !important;
    color: white;
}

/* --- ADDED: Disabled State for .btn-action --- */
.btn-action:disabled {
    background-color: lightgray !important;
    color: #666666 !important;
    cursor: not-allowed;
    filter: none;
}

.btn-action:not(:disabled):hover {
    filter: brightness(1.1);
}

.cancel-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    transition: filter 0.2s;
    background-color: #95a5a6;
    border-color: #95a5a6;
    color: white;
}

.cancel-btn:hover {
    background-color: #7f8c8d;
    color: white;
}

.btn-action-finish {
    font-size: 0.75rem;
    padding: 6px 12px;
    background-color: rgb(39, 174, 96);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    min-width: 90px;
}

.btn-action-finish:hover {
    background-color: rgb(52, 221, 124) !important;
}

.btn-action-change {
    font-size: 0.75rem;
    padding: 6px 12px;
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    min-width: 90px;
}

.btn-action-change:hover {
    background-color: rgb(52, 221, 124) !important;
    color: var(--white);
}

.btn-action-delete {
    font-size: 0.75rem;
    padding: 6px 12px;
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    min-width: 90px;
}

.btn-action-delete:hover {
    background-color: #edcbce;
}

.btn-copy {
    width: auto;
    padding: 0 4px;
    border-radius: 6px;
    border: 1px solid gray;
    font-size: 11px;
    background: #f1f1f1;
    cursor: pointer;
}

.btn-copy:hover {
    background: lightgray;
}

.features {
    background: var(--bg-gradient-green);
    text-align: center;
    max-width: 800px;
    margin: 100px auto 40px;
    padding-top: 40px;
    padding-bottom: 80px;
    border-radius: 10px;
    width: 95%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #d0e8d4;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.15);
}

.icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.showcase {
    background: var(--bg-gradient-green);
    padding: 80px 0;
    text-align: center;
}

.app-mockup {
    background: var(--white);
    max-width: 600px;
    margin: 40px auto 0;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #d4eadd;
}

.mockup-header {
    background: #e0ece4;
    padding: 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #d4eadd;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.mockup-body {
    padding: 40px;
    text-align: center;
}

.lottery-ticket {
    border: 2px dashed var(--primary);
    padding: 20px;
    background-color: #fafffb;
    border-radius: 10px;
    position: relative;
}

.lottery-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: bold;
    margin-bottom: 20px;
}

.numbers-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.lotto-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lotto-ball.winner {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary-dark);
}

.lotto-ball.bonus {
    background-color: var(--gold);
    border-color: #d4ac0d;
    color: var(--white);
}

footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {

    .btn-action-change,
    .btn-action-delete,
    .btn-action-finish {
        padding: 5px 8px;
        font-size: 0.7rem;
    }

    .home h1 {
        font-size: 2rem;
    }

    .hamburger {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

   .nav-links {
        display: none; /* Keep this to ensure it's not in the layout */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        gap: 0;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        padding-bottom: 20px;
        z-index: 1000;
    }

    /* Force display to none unless .active is present */
    .nav-links.active {
        display: flex !important; 
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        color: var(--secondary);
    }

    .nav-links a:hover {
        color: var(--primary);
    }

    .mobile-lang-container {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .home {
        padding-top: 120px;
    }

    .numbers-row {
        gap: 5px;
    }

    .lotto-ball {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Dropdown on Mobile (Simplified) */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.05);
    }

    .dropdown-content a {
        color: var(--secondary) !important;
        padding-left: 0;
        border: none;
    }
}