/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-theme {
    background-color: #2c2c2c;
    color: #f5f5f5;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* App Container */
.app-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

body.dark-theme .app-container {
    background-color: #3b3b3b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Header */
.app-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

body.dark-theme .app-header {
    background-color: #3b3b3b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.app-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow navigation items to wrap on smaller screens */
}

.app-header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
    padding: 0.5rem 0; /* Add some padding around the logo */
}

body.dark-theme .app-header .logo {
    color: #58a6ff;
}

.app-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allow nav links to wrap */
}

.app-header nav li {
    margin-left: 1.5rem;
}

.app-header nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0; /* Add padding to nav links for better click area */
}

body.dark-theme .app-header nav a {
    color: #f5f5f5;
}

.app-header nav a:hover {
    color: #0056b3;
}

body.dark-theme .app-header nav a:hover {
    color: #8ac0ff;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem; /* Added padding for better visual spacing */
    background-color: #f8f9fa; /* Light background for footer */
    border-top: 1px solid #eee;
    color: #6c757d;
}

body.dark-theme footer {
    background-color: #3b3b3b;
    border-top: 1px solid #555;
    color: #a0a0a0;
}

/* Card */
.card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.dark-theme .card {
    background-color: #444;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Input Section */
.input-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-section input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.input-section button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.input-section button:hover {
    background-color: #0056b3;
}

/* Result Section */
.result-section ul {
    list-style: none;
    padding: 0;
}

.result-section li {
    background-color: #fff;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.dark-theme .result-section li {
    background-color: #555;
}

/* Custom Section */
.custom-section h2 {
    margin-top: 0;
}

.custom-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    min-height: 100px;
}

.custom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.control-group {
    display: flex;
    align-items: center;
}

.control-group label {
    margin-right: 0.5rem;
}

#questionType {
    padding: 0.5rem;
    border-radius: 4px;
}

#addCustomBtn {
    padding: 0.75rem 1.5rem;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

#addCustomBtn:hover {
    background-color: #218838;
}

#optionArea {
    margin-top: 1rem;
}

#optionArea .option-input {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Ad Section */
.ad-section {
    text-align: center;
    padding: 1rem;
    background-color: #e9ecef;
}

body.dark-theme .ad-section {
    background-color: #333;
}

/* Result Actions */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#copyQuestionsBtn {
    background-color: #007bff;
    color: #fff;
}

#copyQuestionsBtn:hover {
    background-color: #0056b3;
}

#downloadQuestionsBtn {
    background-color: #28a745;
    color: #fff;
}

#downloadQuestionsBtn:hover {
    background-color: #218838;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        margin: 1rem auto;
        padding: 1rem;
    }

    .app-header nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-header nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .app-header nav li {
        margin: 0.5rem 0;
    }

    .app-header .logo {
        margin-bottom: 1rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }
}

