.cqp-question-bank-container,
.cqp-saved-questions-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cqp-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.cqp-form-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cqp-form-group label {
    margin-bottom: 5px;
    font-weight: 600;
}

.cqp-form-group select,
.cqp-form-group input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.cqp-button {
    padding: 8px 16px;
    background-color: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.cqp-button:hover {
    background-color: #135e96;
}

.cqp-button-secondary {
    background-color: #f0f0f1;
    color: #2c3338;
}

.cqp-button-secondary:hover {
    background-color: #dcdcde;
}

.cqp-button-danger {
    background-color: #d63638;
}

.cqp-button-danger:hover {
    background-color: #b32d2e;
}

.cqp-questions-list {
    margin-top: 20px;
}

.cqp-question-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cqp-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.cqp-question-header h3 {
    margin: 0;
    flex-grow: 1;
}

.cqp-question-actions {
    display: flex;
    gap: 8px;
}

.cqp-options-list {
    margin: 10px 0;
}

.cqp-option {
    padding: 8px 12px;
    margin: 5px 0;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.cqp-correct-answer {
    margin-top: 10px;
    padding: 10px;
    background-color: #e6f7ee;
    border-radius: 4px;
    color: #1d7a4c;
}

.cqp-pagination {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.cqp-page-link {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #2271b1;
}

.cqp-current-page {
    background-color: #2271b1;
    color: white;
}

.cqp-no-questions {
    text-align: center;
    padding: 20px;
    color: #666;
}

.cqp-notice {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

.cqp-page-jump {
    display: inline-flex;
    margin: 0 5px;
}

.cqp-page-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 15px;
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

.cqp-page-select:hover {
    border-color: #c0c0c0;
}

.cqp-page-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Image styles for ALL devices */
.cqp-image-wrapper {
    margin: 15px 0;
    text-align: center;
}

.cqp-question-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* Desktop/Laptop specific improvements */
@media (min-width: 769px) {
    .cqp-question-image {
        max-width: 90%;
        transition: transform 0.3s ease;
    }
    
    .cqp-question-image:hover {
        transform: scale(1.01);
    }
    
    .cqp-question-actions {
        flex-wrap: nowrap;
    }
}

/* Tablet and Mobile adjustments */
@media (max-width: 768px) {
    .cqp-image-wrapper {
        margin: 10px -10px;
        padding: 0 10px;
        overflow-x: auto;
    }
    
    .cqp-question-image {
        min-width: 350px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* Mobile-specific adjustments (600px and below) */
@media (max-width: 600px) {
    .cqp-question-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cqp-question-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .cqp-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cqp-button {
        width: 100%;
    }
    
    /* Pagination adjustments for mobile */
    .cqp-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .cqp-page-jump {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .cqp-page-select {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    /* Stack buttons vertically on very small screens */
    @media (max-width: 400px) {
        .cqp-question-actions {
            flex-direction: column;
            gap: 5px;
        }
        
        .cqp-question-actions .cqp-button {
            width: 100%;
            margin-bottom: 5px;
        }
    }
}