/* General Styles */
body {
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.app-container {
    margin-top: 20px;
}

/* Research App Styles */
#research-app .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#research-app .search-bar {
    flex: 1;
    display: flex;
    gap: 16px;
    align-items: center;
}

#research-app .search-bar input[type="text"] {
    flex: 2;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#research-app .search-bar select {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#research-app .search-bar button[type="submit"] {
    padding: 10px 24px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
}

#research-app .search-bar button[type="submit"]:hover {
    background: #125ea8;
}

#research-app .refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #1976d2;
    margin-left: 16px;
    transition: color 0.2s;
}

#research-app .refresh-btn:hover {
    color: #125ea8;
}

#research-app .output {
    margin-top: 24px;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 16px;
    min-height: 80px;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 15px;
}

/* Quiz and YouTube App Styles */
.quiz-card {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #ffffff;
}

.option-btn {
    margin-bottom: 12px;
    text-align: left;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.4;
    color: #ffffff !important;
    background-color: #2196F3 !important;
}

.option-btn.correct {
    background-color: #4caf50 !important;
}

.option-btn.wrong {
    background-color: #f44336 !important;
}

#question-text {
    color: #212121 !important;
    font-weight: 500;
}

.card-title {
    color: #1976D2 !important;
    font-weight: 600;
}

.chip {
    background-color: #e3f2fd !important;
    color: #0d47a1 !important;
    font-weight: 500;
}

h4 {
    color: #212121 !important;
    font-weight: 600;
}

p {
    color: #424242 !important;
    font-weight: 500;
}

@media only screen and (max-width: 600px) {
    .quiz-card {
        margin-top: 0.5rem;
        padding: 1rem;
    }

    .container {
        width: 95%;
    }

    .option-btn {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 14px;
        font-weight: 500;
    }

    .card-title {
        font-size: 1.8rem !important;
    }

    #question-text {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .chip {
        margin: 2px;
        font-size: 13px;
    }
}
