* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header {
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

header h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.user-info {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.user-info label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background-color: #666;
    color: white;
    transition: background-color 0.3s;
}

button:hover:not(:disabled) {
    background-color: #555;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.primary {
    background-color: #4CAF50;
}

button.primary:hover:not(:disabled) {
    background-color: #45a049;
}

button.secondary {
    background-color: #2196F3;
}

button.secondary:hover:not(:disabled) {
    background-color: #0b7dda;
}

button.danger {
    background-color: #f44336;
}

button.danger:hover:not(:disabled) {
    background-color: #da190b;
}

button.btn-large {
    padding: 15px 30px;
    font-size: 16px;
    min-width: 200px;
}

button.btn-small {
    padding: 5px 12px;
    font-size: 12px;
}

button.btn-highlight {
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.screen {
    margin-top: 20px;
}

.screen h2 {
    color: #333;
    margin-bottom: 20px;
}

.screen h3 {
    color: #555;
    margin: 20px 0 10px;
}

.folder-item, .test-item {
    padding: 15px;
    margin: 10px 0;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.folder-item:hover, .test-item:hover {
    background-color: #e9e9e9;
    transform: translateX(5px);
}

.folder-item:active, .test-item:active {
    transform: translateX(2px);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Overview Screen */
.back-button {
    margin-bottom: 20px;
    display: inline-block;
}

.overview-content {
    text-align: center;
    padding: 40px 20px;
}

.overview-content h2 {
    margin-bottom: 40px;
    font-size: 1.8em;
}

.overview-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* History Screen */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.history-header h2 {
    margin: 0;
}

.history-item {
    padding: 15px;
    margin: 10px 0;
    background-color: #f5f5f5;
    border-radius: 4px;
    border-left: 4px solid #2196F3;
}

.history-date {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.history-score {
    font-weight: bold;
    color: #4CAF50;
    margin: 5px 0;
}

.history-user {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

#history-detail-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.history-detail-summary {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.history-detail-summary h3 {
    margin-top: 0;
    color: #333;
}

.history-detail-summary p {
    margin: 8px 0;
}

.history-answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-answer-item {
    padding: 15px;
    background-color: #fafafa;
    border-radius: 4px;
    border-left: 4px solid #4CAF50;
}

.history-question-id {
    margin-bottom: 8px;
    color: #333;
}

.history-answer-value {
    color: #555;
    padding: 8px;
    background-color: white;
    border-radius: 4px;
}

/* Test Screen */
.test-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.test-header h2 {
    flex: 1;
    margin: 0;
    min-width: 200px;
}

.test-header-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Floating Progress Button */
.floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 8px;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.floating-btn:active {
    transform: scale(0.95);
}

.progress-icon {
    font-size: 20px;
    line-height: 1;
}

.progress-count {
    font-size: 10px;
    font-weight: bold;
    margin-top: 2px;
}

/* Floating Progress Panel */
.floating-panel {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 998;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-panel-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-panel-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.close-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
}

#floating-progress-content {
    max-height: 420px;
    overflow-y: auto;
    padding: 15px;
}

.progress-section {
    background-color: white;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
}

.progress-section-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-badge {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    background-color: #e0e0e0;
    color: #666;
}

.progress-badge.complete {
    background-color: #4CAF50;
    color: white;
}

.progress-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.progress-question-chip {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    cursor: pointer;
}

.progress-question-chip.answered {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #4CAF50;
}

/* Section */
.section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.section-title {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.section-paragraph {
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-left: 4px solid #4CAF50;
    line-height: 1.8;
}

/* Subsection */
.subsection {
    margin: 20px 0;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 4px;
    border-left: 3px solid #2196F3;
}

.subsection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    margin: -15px -15px 15px -15px;
    background-color: #f0f7ff;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.2s;
}

.subsection-header:hover {
    background-color: #e3f2fd;
}

.subsection-arrow {
    font-size: 14px;
    color: #2196F3;
    transition: transform 0.2s;
    display: inline-block;
    width: 20px;
}

.subsection-title-text {
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
}

.subsection-content {
    transition: all 0.3s ease;
}

.subsection-subtitle {
    color: #666;
    font-style: italic;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.subsection-paragraph {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f5f5f5;
    border-left: 3px solid #2196F3;
    line-height: 1.7;
}

/* Section Navigation */
.section-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
    gap: 15px;
}

.section-info {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.section-navigation button {
    padding: 12px 24px;
    font-size: 15px;
    min-width: 150px;
}

/* Question */
.question {
    margin: 20px 0;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: background-color 0.3s;
}

.question-text {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.option {
    margin: 8px 0;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.option:hover {
    background-color: #f0f0f0;
}

.option label {
    cursor: pointer;
    display: block;
}

.option input {
    margin-right: 8px;
    cursor: pointer;
}

.text-answer {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.match-question {
    display: grid;
    gap: 10px;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 4px;
    flex-wrap: wrap;
}

.match-item span {
    flex: 1;
    min-width: 200px;
}

.match-item select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.composite-question {
    border-left: 4px solid #2196F3;
    padding-left: 15px;
}

.subquestion {
    margin: 15px 0;
    padding: 10px;
    background-color: #f0f8ff;
    border-radius: 4px;
}

/* Results */
#score-summary {
    padding: 20px;
    background-color: #e8f5e9;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.score-item {
    margin: 10px 0;
    font-size: 1.1em;
}

.score-percentage {
    font-size: 2.5em;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
}

.result-item {
    margin: 15px 0;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.result-item.correct {
    background-color: #e8f5e9;
    border-color: #4CAF50;
}

.result-item.incorrect {
    background-color: #ffebee;
    border-color: #f44336;
}

.result-question {
    font-weight: bold;
    margin-bottom: 10px;
}

.result-answer {
    margin: 5px 0;
    padding: 8px;
    background-color: white;
    border-radius: 4px;
}

.result-explanation {
    margin-top: 10px;
    padding: 10px;
    background-color: #fff9c4;
    border-left: 3px solid #ffc107;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 1.4em;
    }

    .user-info {
        flex-direction: column;
        align-items: stretch;
    }

    .user-info label {
        width: 100%;
    }

    .user-info input {
        width: 100%;
        min-width: auto;
    }

    .user-info button {
        width: 100%;
    }

    .test-header {
        flex-direction: column;
        align-items: stretch;
    }

    .test-header h2 {
        min-width: auto;
    }

    .test-header-buttons {
        flex-direction: column;
    }

    .test-header-buttons button {
        width: 100%;
    }

    .overview-content h2 {
        font-size: 1.4em;
    }

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

    .overview-actions button {
        width: 100%;
        min-width: auto;
    }

    .history-header {
        flex-direction: column;
        align-items: stretch;
    }

    .history-header button {
        width: 100%;
    }

    button.btn-large {
        min-width: auto;
        width: 100%;
    }

    .progress-section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .match-item {
        flex-direction: column;
        align-items: stretch;
    }

    .match-item span {
        min-width: auto;
    }

    .match-item select {
        width: 100%;
        min-width: auto;
    }

    .section-paragraph {
        padding: 10px;
    }

    .score-percentage {
        font-size: 2em;
    }

    /* Modal mobile adjustments */
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px;
    }

    #history-detail-content {
        padding: 15px;
    }

    .modal-footer {
        padding: 15px;
    }

    .modal-footer button {
        width: 100%;
    }

    /* Toast mobile adjustment */
    .toast {
        bottom: 20px;
        max-width: calc(100% - 40px);
        font-size: 13px;
        padding: 12px 20px;
    }

    /* Floating elements mobile adjustment */
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }

    .progress-icon {
        font-size: 18px;
    }

    .progress-count {
        font-size: 9px;
    }

    .floating-panel {
        width: calc(100vw - 30px);
        left: 15px;
        bottom: 75px;
        max-height: 400px;
    }

    #floating-progress-content {
        max-height: 320px;
    }

    /* Section navigation mobile */
    .section-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .section-navigation button {
        width: 100%;
        min-width: auto;
    }

    .section-info {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2em;
    }

    button {
        padding: 8px 15px;
        font-size: 13px;
    }

    .section-title {
        font-size: 1.1em;
    }

    .question {
        padding: 10px;
    }

    .progress-questions {
        gap: 5px;
    }

    .progress-question-chip {
        padding: 4px 8px;
        font-size: 11px;
    }
}
/* Audio Player */
.audio-player {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.audio-play-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.audio-play-btn:active {
    transform: scale(0.95);
}

.audio-timeline {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audio-progress-container {
    position: relative;
    width: 100%;
    height: 8px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.audio-progress-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 4px;
    transition: width 0.1s;
    position: relative;
}

.audio-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.audio-times {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    font-family: monospace;
}

.audio-transcript {
    margin-top: 10px;
    padding: 12px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    border-left: 3px solid #4CAF50;
}

.audio-transcript-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section and Subsection Images */
.section-image, .subsection-image {
    margin: 20px 0;
    text-align: center;
}

.section-image img, .subsection-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section-image img {
    max-height: 400px;
    object-fit: cover;
}

.subsection-image img {
    max-height: 350px;
    object-fit: cover;
}

/* Question Images */
.question-image {
    margin: 15px 0;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}
/* Section Type Filter */
.section-type-filter {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.section-type-filter h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.section-toggle-container {
    margin-bottom: 15px;
}

.section-toggle-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.section-toggle-item:hover {
    background-color: #f0f8ff;
    border-color: #2196F3;
}

.section-toggle-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.toggle-label {
    font-size: 16px;
    font-weight: 500;
    user-select: none;
}

.complete-exam-toggle {
    background-color: #e8f5e9;
    border-color: #4CAF50;
}

.complete-exam-toggle:hover {
    background-color: #c8e6c9;
}

.individual-sections {
    padding-left: 20px;
    margin-top: 10px;
    border-left: 3px solid #2196F3;
}

/* Essay question type */
.essay-question textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

.essay-question textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

.essay-word-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Section scores in results */
.section-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.section-score-card {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.section-score-card.enabled {
    border-color: #4CAF50;
}

.section-score-card.disabled {
    background-color: #f5f5f5;
    opacity: 0.6;
}

.section-score-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.section-score-percentage {
    font-size: 2em;
    font-weight: bold;
    color: #4CAF50;
    margin: 10px 0;
}

.section-score-details {
    font-size: 13px;
    color: #666;
}

.section-disabled-badge {
    display: inline-block;
    background-color: #f44336;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 5px;
}

/* Custom HTML Content (optimized for tables) */
.custom-html-content {
    margin: 20px 0;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow-x: auto;
}

/* Table styling inside custom HTML */
.custom-html-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.custom-html-content table th,
.custom-html-content table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.custom-html-content table th {
    background-color: #2196F3;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.custom-html-content table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.custom-html-content table tbody tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.2s;
}

/* Other HTML elements in custom content */
.custom-html-content h1,
.custom-html-content h2,
.custom-html-content h3,
.custom-html-content h4,
.custom-html-content h5,
.custom-html-content h6 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #333;
}

.custom-html-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.custom-html-content ul,
.custom-html-content ol {
    margin: 10px 0;
    padding-left: 30px;
}

.custom-html-content li {
    margin: 5px 0;
    line-height: 1.6;
}

.custom-html-content blockquote {
    margin: 15px 0;
    padding: 10px 20px;
    border-left: 4px solid #2196F3;
    background-color: #f5f5f5;
    font-style: italic;
}

.custom-html-content code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.custom-html-content pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 10px 0;
}

.custom-html-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Mobile responsive for custom HTML tables */
@media (max-width: 768px) {
    .custom-html-content {
        padding: 10px;
    }

    .custom-html-content table {
        font-size: 0.9em;
    }

    .custom-html-content table th,
    .custom-html-content table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    /* Stack table cells on very small screens if needed */
    .custom-html-content table {
        font-size: 0.85em;
    }

    .custom-html-content table th,
    .custom-html-content table td {
        padding: 6px 8px;
    }
}