/* style.css - Dark Theme */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0d1117;
    color: #c9d1d9;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 700px;
    background: #161b22;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #30363d;
}

h1 {
    font-size: 2rem;
    color: #58a6ff;
    margin-bottom: 10px;
}

#introText {
    margin-bottom: 20px;
    color: #8b949e;
}

input[type="checkbox"] {
    accent-color: #238636;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#isPremiumUserLabel {
    color: #8b949e;
    margin-left: 2px;
    cursor: pointer;
    user-select: none;
}

.input-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #30363d;
    background-color: #0d1117;
    color: #c9d1d9;
    border-radius: 6px;
    font-size: 16px;
}

input[type="text"]::placeholder {
    color: #6e7681;
}

button {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #238636;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #2ea043;
}

#statusMessage {
    margin-bottom: 10px;
    color: #6e7681;
    font-style: italic;
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-item {
    background-color: #21262d;
    padding: 15px 20px;
    border-left: 6px solid #238636;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.question-item:hover {
    background-color: #30363d;
}

.question-item a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: bold;
}

.question-item a:hover {
    text-decoration: underline;
}

.question-item small {
    display: block;
    color: #8b949e;
    margin-top: 4px;
    font-size: 13px;
}

#toggleViewBtn {
    color: #fff;
    padding: 10px 20px;
    border: 1px solid #444;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

#recommendSection {
    justify-self: center;
    max-width: 350px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #c9d1d9;
}

#recommendSection label {
    font-size: 20px;
    font-weight: 900;
}

.filter-section {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.difficulty-wrapper label {
    margin-right: 10px;
    color: #c9d1d9;
}

#difficultySelect {
    background-color: #0d1117;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
}

#toggleTopicsBtn {
    background-color: #21262d;
    border: 1px solid #30363d;
    color: #58a6ff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.topics-wrapper{
    display: flex;
    justify-content: center;
    flex-direction: column;

}

#toggleTopicsBtn{
    max-width: 130px;
    margin-right: auto;
    margin-left: auto;
}

.topic-btn {
    background-color: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s, color 0.2s;
}

.topic-btn.selected {
    background-color: #238636;
    color: white;
}

.hidden {
    display: none !important;
}


#getRecommendBtn {
    max-width: 200px;
    padding: 10px 15px;
    background-color: #238636;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
}

#getRecommendBtn:hover {
    background-color: #2ea043;
}

#recommendations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#recommendations h3 {
    font-size: 18px;
    color: #c9d1d9;
    margin: 8px 0 8px 0;
}
