/**
 * Legal Lens ET Agent main stylesheet.
 *
 * @package Legal_Lens_ET_Agent
 */

/* Container and general layout */
:root {
    --primary-color: #337ab7;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --background-light: #f4f8fb;
    --white: #fff;
    --transition-speed: 0.3s;
    --error-color: #f44336;
    --success-color: #4CAF50;
    --info-color: #2196F3;
    --warning-color: #FFC107;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    transition: all var(--transition-speed) ease;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.ll-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Banner */
.ll-hero {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.ll-hero h1 {
    margin: 0;
    font-size: 2.2em;
    color: var(--white) !important;
}

.ll-hero p {
    max-width: 700px;
    margin: 10px auto 0;
    font-size: 1.1em;
    line-height: 1.5;
}

/* Cards */
.ll-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto;
    padding: 0 20px;
    justify-content: center;
}

.ll-card {
    flex: 1 1 300px;
    background: var(--white);
    box-shadow: 0 2px 6px var(--shadow-color);
    border-radius: 6px;
    padding: 20px;
    min-width: 280px;
    max-width: 340px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.ll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.ll-card h3 {
    margin-top: 0;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.ll-card p {
    font-size: 0.95em;
    line-height: 1.4em;
    margin: 0;
}

/* Search section */
.ll-search-section {
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    margin-top: 20px;
}

.ll-status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.ll-status {
    font-size: 0.95em;
    background: #eaf4ff;
    border-left: 4px solid var(--primary-color);
    padding: 10px;
    border-radius: 4px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.ll-search-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ll-input-group {
    flex: 1 1 300px;
    display: flex;
    background: var(--white);
    border: 1px solid #ccc;
    border-radius: 4px;
    align-items: center;
}

.ll-input-group i {
    color: #999;
    margin: 0 8px;
}

.ll-input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 0.95em;
    outline: none;
}

.ll-checkbox-group {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.ll-search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 1em;
    transition: background var(--transition-speed);
}

.ll-search-btn:hover {
    background: #23527c;
}

.ll-suggested {
    margin-top: 15px;
}

.ll-suggested a {
    display: inline-block;
    margin: 5px 5px 0 0;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.ll-suggested a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Results */
.ll-results {
    padding: 20px;
}

.ll-results h2 {
    margin-top: 0;
    font-size: 1.3em;
}

/* Common Questions Styling */
.ll-common-question-answer {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ll-question-box {
    margin-bottom: 20px;
}

.ll-question-box h3 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.ll-answer {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-color);
}

.ll-related-resources {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.ll-related-resources h4 {
    color: var(--secondary-color);
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Error Messages */
.ll-error-message {
    background-color: #fff4f4;
    border-left: 4px solid var(--error-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.ll-error-message p {
    color: #d32f2f;
    margin: 0;
}

/* No Results */
.ll-no-results {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ll-no-results p {
    font-size: 1.1em;
    margin-top: 0;
}

.ll-suggestions h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.ll-suggestions ul {
    margin-top: 0;
    padding-left: 20px;
}

/* Results Filters */
.ll-results-filters {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ll-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.ll-filter-item {
    flex: 1 1 200px;
}

.ll-filter-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    font-weight: 600;
}

.ll-filter-input, .ll-filter-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ll-filter-actions {
    flex: 0 0 auto;
}

.ll-clear-filters-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
}

.ll-clear-filters-btn:hover {
    background: #e0e0e0;
}

.ll-filter-status {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

/* Tabs for different result sources */
.ll-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.ll-tab-btn {
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-bottom: none;
    padding: 8px 15px;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.ll-tab-btn:hover {
    background: #e9e9e9;
}

.ll-tab-btn.active {
    background: var(--white);
    border-bottom: 1px solid var(--white);
    margin-bottom: -1px;
    font-weight: 600;
    color: var(--primary-color);
}

.ll-tab-content {
    display: none;
}

.ll-tab-content h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: var(--secondary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Result items */
.ll-result-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 15px;
}

.ll-result-item:last-child {
    border-bottom: none;
}

.ll-result-item:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.ll-result-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ll-result-title span {
    color: #999;
    font-size: 0.9em;
    margin-left: 5px;
}

/* Source badges */
.ll-source-badge {
    display: inline-block;
    font-size: 0.75em;
    background: #e0e0e0;
    color: #333;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: auto;
}

.ll-na-badge {
    background: #f0f7ff;
    color: #0066cc;
}

/* Result metadata */
.ll-result-meta {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 8px;
}

.ll-meta-field {
    display: inline-block;
    margin-right: 10px;
    background: #f9f9f9;
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 2px solid #ddd;
}

/* Extended Metadata Styling */
.ll-result-meta-extended {
    position: relative;
    margin-bottom: 15px;
}

.ll-meta-toggle {
    cursor: pointer;
    color: var(--primary-color);
    font-size: 0.9em;
    margin-bottom: 5px;
    user-select: none;
}

.ll-meta-toggle:hover {
    text-decoration: underline;
}

.ll-meta-basic {
    margin-bottom: 5px;
}

.ll-meta-extended {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
}

.ll-meta-row {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.ll-meta-label {
    font-weight: 600;
    color: #555;
    margin-right: 5px;
    min-width: 120px;
    display: inline-block;
}

.ll-relevance-explanation {
    font-size: 0.9em;
    color: #666;
    background: #fffde7;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 3px solid #ffc107;
}

.ll-summary-toggle {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.ll-result-summary {
    position: relative;
    min-height: 50px;
}

.ll-summary-text {
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.4em;
}

.ll-full-analysis {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95em;
    line-height: 1.5em;
}

.ll-full-analysis h4 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.05em;
    color: var(--secondary-color);
}

.ll-plain-language-summary {
    background: #f0f7ff;
    padding: 10px;
    border-left: 4px solid #0066cc;
    font-size: 0.95em;
    line-height: 1.5em;
    margin: 10px 0;
}

.ll-practical-steps {
    display: none;
    margin: 10px 0;
}

.ll-practical-steps-content {
    background: #f1f8e9;
    padding: 10px;
    border-left: 4px solid #8bc34a;
}

.ll-practical-steps-content h4 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.05em;
    color: #33691e;
}

/* Feedback buttons */
.ll-feedback {
    margin-top: 10px;
    margin-bottom: 5px;
}

.ll-feedback button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    margin-right: 8px;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.ll-feedback button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.ll-feedback button.active {
    opacity: 1;
    transform: scale(1.2);
}

.ll-feedback button.sending {
    opacity: 0.4;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.ll-result-actions {
    margin-top: 10px;
    font-size: 0.85em;
    color: #666;
}

.ll-result-actions a {
    color: var(--primary-color);
    text-decoration: underline;
}

.ll-result-actions button {
    transition: all 0.2s ease;
}

.ll-result-actions button:hover {
    background-color: var(--primary-color);
    color: white;
}

.ll-error-msg {
    color: #d32f2f;
    border-left: 3px solid #d32f2f;
    padding-left: 8px;
    margin: 8px 0;
    font-style: italic;
}

/* Compare Results Styling */
.ll-compare-container {
    background-color: #f4f8fb;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.ll-compare-container h3 {
    margin-top: 0;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.ll-compare-items {
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.ll-compare-item {
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.ll-compare-check {
    margin-top: 10px;
    font-size: 0.9em;
}

.ll-compare-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.ll-compare-actions button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
}

.ll-compare-actions button:hover {
    background: #23527c;
}

.ll-close-compare {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

.ll-close-compare:hover {
    background-color: #e0e0e0 !important;
}

/* Saved Results */
.ll-saved-results-container {
    margin-top: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.ll-saved-results-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: var(--secondary-color);
}

.ll-saved-result-item {
    background: var(--white);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.ll-saved-result-header {
    flex: 1 1 300px;
}

.ll-saved-result-header h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
    color: var(--primary-color);
}

.ll-saved-result-meta {
    font-size: 0.85em;
    color: #666;
}

.ll-saved-result-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

.ll-saved-result-actions button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
}

.ll-saved-result-actions button:hover {
    background: #e0e0e0;
}

/* Saved Result Modal */
.ll-saved-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ll-saved-result-modal-content {
    background: var(--white);
    padding: 20px;
    border-radius: 4px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.ll-saved-result-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
}

.ll-saved-result-close:hover {
    color: #333;
}

.ll-saved-result-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--secondary-color);
}

.ll-saved-result-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.ll-saved-result-footer button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
}

.ll-saved-result-footer button:hover {
    background: #23527c;
}

/* Loader overlay */
.ll-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ll-loader-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    background: url('https://legallens.org.uk/wp-content/uploads/2024/08/cropped-cropped-logo-2.png.webp') no-repeat center center;
    background-size: contain;
}

.ll-spinner-msg {
    font-size: 1em;
    color: #444;
    margin-top: 5px;
}

.ll-time-hint {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.ll-loader-cancel {
    margin-top: 10px;
    font-size: 0.8em;
    color: #555;
}

/* Notification */
.ll-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    color: white;
    border-radius: 5px;
    z-index: 10000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 300px;
}

.ll-notification-error {
    background-color: var(--error-color);
}

.ll-notification-success {
    background-color: var(--success-color);
}

.ll-notification-info {
    background-color: var(--info-color);
}

.ll-notification-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ll-notification button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.ll-notification button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* LiP Mode Toggle */
.ll-mode-toggle {
    display: flex;
    align-items: center;
}

.ll-mode-label {
    margin-right: 10px;
    font-size: 0.9em;
}

.ll-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.ll-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.ll-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.ll-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .ll-slider {
    background-color: var(--success-color);
}

input:focus + .ll-slider {
    box-shadow: 0 0 1px var(--success-color);
}

input:checked + .ll-slider:before {
    transform: translateX(20px);
}

/* Jargon Buster */
.ll-jargon-buster {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.ll-jargon-buster h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: var(--secondary-color);
}

.ll-jargon-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ll-jargon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.ll-jargon-item {
    background: var(--white);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.ll-jargon-term {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.ll-jargon-meaning {
    font-size: 0.9em;
    color: #666;
}

/* Quick Questions */
.ll-quick-questions {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.ll-quick-questions h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: var(--secondary-color);
}

.ll-questions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.ll-question-item {
    background: var(--white);
    border-radius: 4px;
    padding: 10px;
    transition: all 0.2s ease;
}

.ll-question-item:hover {
    box-shadow: 0 2px 4px var(--shadow-color);
}

.ll-question a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
}

.ll-quick-resources {
    margin-top: 15px;
    font-size: 0.9em;
}

.ll-quick-resources a {
    color: var(--primary-color);
    text-decoration: none;
}

.ll-quick-resources a:hover {
    text-decoration: underline;
}

/* LiP Mode Styles */
.ll-container.ll-lip-mode .ll-result-item {
    border-left: 4px solid #8bc34a;
    padding-left: 15px;
}

.ll-container.ll-lip-mode .ll-practical-steps {
    display: block;
}

/* Accessibility Improvements */
.ll-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .ll-hero h1 {
        font-size: 2em;
    }
    
    .ll-hero p {
        font-size: 1em;
    }
    
    .ll-search-form {
        flex-direction: column;
    }
    
    .ll-input-group, .ll-search-btn {
        width: 100%;
    }
    
    .ll-tabs {
        flex-wrap: wrap;
    }
    
    .ll-tab-btn {
        flex: 1 1 auto;
        text-align: center;
    }
    
    .ll-result-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ll-source-badge {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .ll-jargon-list, .ll-questions-list {
        grid-template-columns: 1fr;
    }
    
    .ll-saved-result-item {
        flex-direction: column;
    }
    
    .ll-saved-result-actions {
        margin-top: 10px;
    }
    
    .ll-common-question-answer {
        padding: 15px;
    }
    
    .ll-compare-container {
        padding: 15px;
    }
    
    .ll-compare-actions {
        flex-direction: column;
    }
    
    .ll-compare-actions button {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .ll-meta-label {
        min-width: 100px;
    }
}

/* Enhanced Mobile Responsiveness */
@media screen and (max-width: 768px) {
    /* General Layout */
    .ll-container {
        padding: 0 10px;
    }
    
    /* Hero Section */
    .ll-hero {
        padding: 30px 15px;
    }
    
    .ll-hero h1 {
        font-size: 1.8em;
    }
    
    .ll-hero p {
        font-size: 0.95em;
    }
    
    /* Search Form */
    .ll-search-form {
        flex-direction: column;
    }
    
    .ll-input-group, .ll-checkbox-group, .ll-search-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .ll-status-line {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ll-mode-toggle {
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Results Area */
    .ll-results {
        padding: 15px 10px;
    }
    
    .ll-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .ll-tab-btn {
        flex: 1 1 auto;
        text-align: center;
        font-size: 0.85em;
        padding: 6px 10px;
    }
    
    /* Results Filters */
    .ll-filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .ll-filter-item {
        width: 100%;
    }
    
    /* Result Items */
    .ll-result-item {
        padding: 12px 0;
    }
    
    .ll-result-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ll-source-badge {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .ll-result-meta {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .ll-meta-field {
        display: inline-block;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    /* Feedback and Actions */
    .ll-result-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ll-result-actions a,
    .ll-result-actions button {
        flex: 1 1 auto;
    }
    
    /* Jargon Buster and Common Questions */
    .ll-jargon-list, 
    .ll-questions-list {
        grid-template-columns: 1fr;
    }
    
    /* Saved Results */
    .ll-saved-result-item {
        flex-direction: column;
    }
    
    .ll-saved-result-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .ll-hero h1 {
        font-size: 1.5em;
    }
    
    .ll-result-actions {
        flex-direction: column;
    }
    
    .ll-result-actions a,
    .ll-result-actions button {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .ll-tab-btn {
        padding: 6px 8px;
        margin-right: 2px;
        font-size: 0.8em;
    }
    
    .ll-status, .ll-relevance-explanation {
        padding: 8px 5px;
        font-size: 0.85em;
    }
    
    .ll-compare-check label {
        display: block;
        padding: 8px 0;
    }
    
    .ll-compare-check input[type="checkbox"] {
        margin-right: 8px;
        transform: scale(1.2);
    }
}