/* --- STYLES FOR CODE GENERATOR PAGE --- */

.generator .btn {
    margin: 0.5rem;
}

/* Section Titles for Generator Page */
.levels h2, .generator h2 {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

/* Levels Grid */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.level-card {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

.level-card h3 {
    color: #a7d129;
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.checkbox-container.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.checkbox-container input[type="checkbox"] {
    display: none; /* Hide the default checkbox */
}

.checkbox-container .label-text {
    margin-left: 0.75rem;
    color: #c4c4c4;
    user-select: none;
}

/* Custom Checkbox Style */
.custom-checkbox {
    width: 22px;
    height: 22px;
    background-color: #1a1a1a;
    border: 2px solid #3498db;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.checkbox-container input:checked + .custom-checkbox {
    background-color: #3498db;
    border-color: #a7d129;
}

/* Checkmark */
.custom-checkbox::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 12px;
    border: solid #000;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-container input:checked + .custom-checkbox::after {
    opacity: 1;
}

/* Result Area */
.result-container {
    margin-top: 2.5rem;
    background-color: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #2a2a2a;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-container h3 {
    color: #a7d129;
    margin-top: 0;
}

.code-display-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#generated-code {
    flex-grow: 1;
    background-color: #000;
    border: 1px solid #3498db;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
}

.btn-copy {
    background: #3498db;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    background: #2980b9;
}

.copy-feedback {
    margin-top: 1rem;
    color: #a7d129;
    font-weight: 600;
    height: 1.2em;
}
