:root {
    --primary: #1d1616;
    --accent: #d84040;
    --success: #1e611e;
    --error: #430c0f;
    --warning: #7a5e0c;
    --text: #333333;
    --background: #ffffff;
    --grade-10-bg: #E6C7C6;
    --grade-10-text: #953F3E;
    --grade-11-bg: #BCE2AF;
    --grade-11-text: #3C543C;
    --grade-12-bg: #C9ACE7;
    --grade-12-text: #41255F;
    --border-radius: 15px;
    --delta-gh-border-radius: 10px !important;
    --delta-gh-modal-radius: 15px !important;
}

* {
    box-sizing: border-box;
    font-family: bodyfont;
}

/* Override Elementor styles */
#delta-gh-app button,
#delta-gh-gheydnameh-app button,
#delta-gh-app .delta-gh-btn,
#delta-gh-gheydnameh-app .delta-gh-btn,
#delta-gh-app .delta-gh-btn-secondary,
#delta-gh-gheydnameh-app .delta-gh-btn-secondary {
    border-radius: 10px !important;
}

#delta-gh-app .delta-gh-modal-content,
#delta-gh-gheydnameh-app .delta-gh-modal-content {
    border-radius: 15px !important;
}

/* Fix all elements with border-radius variable */
#delta-gh-app [style*="border-radius"],
#delta-gh-gheydnameh-app [style*="border-radius"] {
    border-radius: 10px !important;
}

/* Specific fixes for common elements */
#delta-gh-app .delta-gh-card,
#delta-gh-app .delta-gh-option,
#delta-gh-app .delta-gh-input,
#delta-gh-app .delta-gh-select,
#delta-gh-app .delta-gh-textarea,
#delta-gh-gheydnameh-app .delta-gh-card,
#delta-gh-gheydnameh-app .delta-gh-option,
#delta-gh-gheydnameh-app .delta-gh-input,
#delta-gh-gheydnameh-app .delta-gh-select,
#delta-gh-gheydnameh-app .delta-gh-textarea {
    border-radius: 10px !important;
}

/* Force override Elementor's CSS variables */
#delta-gh-app,
#delta-gh-gheydnameh-app,
#delta-gh-app *,
#delta-gh-gheydnameh-app * {
    --border-radius: 10px !important;
}

/* Ultra-specific selectors to override any Elementor styles */
body .elementor #delta-gh-app button,
body .elementor #delta-gh-gheydnameh-app button,
body .elementor-page #delta-gh-app button,
body .elementor-page #delta-gh-gheydnameh-app button,
html body #delta-gh-app button,
html body #delta-gh-gheydnameh-app button {
    border-radius: 10px !important;
}

body .elementor #delta-gh-app .delta-gh-modal-content,
body .elementor #delta-gh-gheydnameh-app .delta-gh-modal-content,
body .elementor-page #delta-gh-app .delta-gh-modal-content,
body .elementor-page #delta-gh-gheydnameh-app .delta-gh-modal-content,
html body #delta-gh-app .delta-gh-modal-content,
html body #delta-gh-gheydnameh-app .delta-gh-modal-content {
    border-radius: 15px !important;
}

#delta-gh-app,
#delta-gh-gheydnameh-app {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-size: 16px;
    color: var(--text);
    background: var(--background);
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-family: titrfont;
    margin: 0 0 20px 0;
}

h1 {
    font-weight: 800;
}

.delta-gh-step {
    text-align: center;
    padding: 40px 20px;
}

.delta-gh-step h2 {
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 28px;
}

.delta-gh-book-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.delta-gh-book-selection label {
    background: var(--background);
    border: 1px solid #ddd;
    border-radius: 10px !important;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.delta-gh-book-selection label:hover {
    border-color: #363636;
    background: #fafafa;
}

.delta-gh-book-selection input[type="checkbox"] {
    transform: scale(1.5);
    accent-color: var(--primary);
}

.delta-gh-btn {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    margin: 10px !important;
    transition: all 0.3s ease !important;
    font-family: bodyfont !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    text-decoration: none !important;
    line-height: normal !important;
}

.delta-gh-btn:hover {
    background: #363636 !important;
    transform: translateY(-2px) !important;
}

.delta-gh-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.delta-gh-btn-secondary {
    background: #f0f0f0 !important;
    color: var(--text) !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    margin: 10px !important;
    transition: all 0.3s ease !important;
    font-family: bodyfont !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    text-decoration: none !important;
    line-height: normal !important;
}

.delta-gh-btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

#delta-gh-chapter-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    min-height: 100px;
    position: relative;
}

.delta-gh-chapters-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.delta-gh-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
}

.delta-gh-loading-container p {
    font-size: 18px;
    color: var(--primary);
    margin: 0;
}

.delta-gh-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: delta-gh-spin 1s linear infinite;
}

@keyframes delta-gh-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.delta-gh-loader-text {
    color: var(--primary);
    font-family: titrfont;
    font-size: 16px;
}

.delta-gh-count-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 20px;
    text-align: center;
}

.delta-gh-count-loader .delta-gh-loader-text {
    color: var(--primary);
    font-family: titrfont;
    font-size: 16px;
}

.delta-gh-chapter-item {
    background: var(--background);
    border: 1px solid #ddd;
    border-radius: 10px !important;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delta-gh-chapter-item:hover,
.delta-gh-chapter-item.selected {
    border-color: #363636;
    background: #fef5f5;
}

.delta-gh-chapter-item input[type="checkbox"] {
    accent-color: var(--primary);
    cursor: pointer;
}

.delta-gh-chapter-item label {
    cursor: pointer;
    flex: 1;
    margin: 0;
}

#delta-gh-count-selection {
    margin: 30px 0;
}

.delta-gh-count-box {
    background: var(--background);
    border-radius: 10px !important;
    padding: 20px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.delta-gh-count-box.grade-10 {
    background: var(--grade-10-bg);
    color: var(--grade-10-text);
}

.delta-gh-count-box.grade-11 {
    background: var(--grade-11-bg);
    color: var(--grade-11-text);
}

.delta-gh-count-box.grade-12 {
    background: var(--grade-12-bg);
    color: var(--grade-12-text);
}

.delta-gh-count-box h4 {
    margin: 0;
    font-size: 16px;
    text-align: right;
    flex: 1;
}

.delta-gh-count-box .delta-gh-input-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.delta-gh-count-box input[type="number"] {
    width: 80px;
    padding: 8px;
    border: none;
    outline: none;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    background: var(--background);
    transition: all 0.3s ease;
}

.delta-gh-count-box input[type="number"].invalid {
    background: #ffeaea;
}

.delta-gh-count-box input[type="number"]:focus {
    box-shadow: 0 0 0 2px rgba(216, 64, 64, 0.3);
}

.delta-gh-error {
    color: var(--error);
    font-size: 14px;
    margin-top: 5px;
}

.delta-gh-step-error {
    background: #ffeaea;
    border-radius: 10px !important;
    color: var(--error);
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    display: none;
}

.delta-gh-progress {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--primary);
    font-family: titrfont;
}

.delta-gh-question-container {
    margin: 40px 0;
    text-align: center;
}

.delta-gh-question {
    background: var(--background);
    border: 1px solid #ddd;
    border-radius: 10px !important;
    padding: 30px;
    margin: 0 auto;
    max-width: 600px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delta-gh-question p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    font-family: titrfont;
}

.delta-gh-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.delta-gh-option {
    background: var(--background);
    border: 1px solid #ddd;
    border-radius: 10px !important;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: center;
}

.delta-gh-option:hover {
    border-color: var(--primary);
    background: #fafafa;
}

.delta-gh-option.no-answer {
    border-color: var(--warning);
    color: var(--warning);
}

.delta-gh-option.no-answer:hover {
    background: var(--warning);
    color: white;
}

.delta-gh-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 15px;
    align-content: center;
}

.delta-gh-stats .delta-gh-stat-box {
    border-radius: var(--border-radius) !important;
    padding: 20px !important;
    min-width: 120px !important;
    text-align: center !important;
    font-family: titrfont !important;
    font-weight: bold !important;
    color: white !important;
    border: none !important;
}

.delta-gh-stats .delta-gh-stat-box.correct {
    color: var(--success) !important;
    background-color: #e8f5e8;
}

.delta-gh-stats .delta-gh-stat-box.wrong {
    color: var(--error) !important;
    background-color: #ffeaea;
}

.delta-gh-stats .delta-gh-stat-box.skip {
    color: var(--warning) !important;
    background-color: #fff8e7;
}

/* Legacy support for non-classed divs */
.delta-gh-stats div:not(.delta-gh-stat-box) {
    background: var(--background);
    border: 1px solid #ddd;
    border-radius: 10px !important;
    padding: 20px;
    min-width: 120px;
    text-align: center;
    font-family: titrfont;
}

.delta-gh-percentage {
    text-align: center;
    margin: 40px 0;
}

.delta-gh-chart {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.delta-gh-chart svg {
    width: 200px;
    height: 120px;
    transform: rotate(0deg);
}

.delta-gh-chart-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 25;
    stroke-linecap: round;
}

.delta-gh-chart-fill {
    fill: none;
    stroke-width: 25;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 2s ease-in-out, stroke 0.5s ease;
}

.delta-gh-chart-fill.red {
    stroke: #d84040;
}

.delta-gh-chart-fill.orange {
    stroke: #ff8c00;
}

.delta-gh-chart-fill.green {
    stroke: #4caf50;
}

.delta-gh-chart-fill.dark-green {
    stroke: #1e611e;
}

.delta-gh-percentage-text {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px !important;
    font-weight: bold !important;
    font-family: titrfont !important;
    padding-top: 10px;
}

.delta-gh-percentage-text.red {
    color: #d84040 !important;
}

.delta-gh-percentage-text.orange {
    color: #ff8c00 !important;
}

.delta-gh-percentage-text.green {
    color: #4caf50 !important;
}

.delta-gh-percentage-text.dark-green {
    color: #1e611e !important;
}

.delta-gh-wrong-questions {
    margin: 40px 0;
    text-align: right;
}

.delta-gh-wrong-questions h3 {
    text-align: center;
    margin-bottom: 30px;
}

.delta-gh-wrong-question-item {
    background: var(--background);
    border: 1px solid #ddd;
    border-radius: 10px !important;
    padding: 20px;
    margin: 15px 0;
}

.delta-gh-wrong-question-item h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.5;
}

.delta-gh-question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.delta-gh-meta-tag {
    background: #f0f0f0;
    color: var(--text);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
}

.delta-gh-meta-tag.book {
    font-weight: bold;
}

.delta-gh-wrong-question-item.grade-10 {
    background: var(--grade-10-bg);
    color: var(--grade-10-text);
}

.delta-gh-wrong-question-item.grade-11 {
    background: var(--grade-11-bg);
    color: var(--grade-11-text);
}

.delta-gh-wrong-question-item.grade-12 {
    background: var(--grade-12-bg);
    color: var(--grade-12-text);
}

.delta-gh-meta-tag.book.grade-10 {
    background: var(--grade-10-text);
    color: var(--grade-10-bg);
}

.delta-gh-meta-tag.book.grade-11 {
    background: var(--grade-11-text);
    color: var(--grade-11-bg);
}

.delta-gh-meta-tag.book.grade-12 {
    background: var(--grade-12-text);
    color: var(--grade-12-bg);
}



/* Gheydnameh Styles */
.delta-gh-knowledge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.delta-gh-search-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 4;
    gap: 5px;
}

.delta-gh-search-container input {
    flex: 1 !important;
    padding: 12px 15px !important
    border: 1px solid #ddd !important;
    border-radius: 15px !important;
    font-size: 16px !important;
    font-family: bodyfont !important;
    background: var(--background) !important;
    transition: border-color 0.3s ease !important;
    direction: rtl !important;
    width: 100% !important;
    height: 45px !important;
    box-sizing: border-box !important;
    color: var(--text) !important;
    outline: none !important;
    text-align: right !important;
    margin: 0 !important;
    vertical-align: top !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    line-height: 1.4 !important;
    min-height: auto !important;
    max-height: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-decoration: none !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    display: block !important;
    border-style: solid !important;
    border-width: 1px !important;
}

.delta-gh-search-container input:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
}

.delta-gh-search-container input:hover {
    border-color: #999 !important;
}

.delta-gh-search-container input::placeholder {
    color: #999 !important;
    font-family: bodyfont !important;
    opacity: 1 !important;
}

#delta-gh-search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: none;
    z-index: 10;
}

#delta-gh-search-clear:hover {
    background: #f0f0f0;
    color: var(--primary);
}

.delta-gh-filter-container {
    flex: 1 !important;
    display: flex !important;
    gap: 10px !important;
    min-width: 120px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    height: auto !important;
}

.delta-gh-filter-container button {
    padding: 15px 20px !important;
    border: 1px solid #ddd !important;
    border-radius: var(--border-radius) !important;
    background: var(--background) !important;
    cursor: pointer !important;
    font-size: 16px !important;
    color: var(--text) !important;
    width: 100% !important;
    height: 45px !important;
    box-sizing: border-box !important;
    font-family: bodyfont !important;
    text-align: center !important;
    outline: none !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    vertical-align: top !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.delta-gh-filter-container button:hover {
    background: #f0f0f0 !important;
    border-color: #999 !important;
}

#delta-gh-filter-clear {
    background: var(--accent) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-family: bodyfont !important;
    transition: all 0.3s ease !important;
    display: none !important;
    margin-right: 10px !important;
}

#delta-gh-filter-clear:hover {
    background: #ad3434 !important;
}

#delta-gh-filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delta-gh-filter-content {
    background: var(--background);
    border: 1px solid #ddd;
    border-radius: 10px !important;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    font-family: bodyfont;
    color: var(--text);
    direction: rtl;
    text-align: right;
}

.delta-gh-filter-content h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-family: titrfont;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.delta-gh-filter-content label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
    font-family: bodyfont;
    color: var(--text);
    font-size: 16px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.delta-gh-filter-content label:hover {
    background: #f0f0f0;
    color: var(--primary);
}

.delta-gh-filter-content input[type="checkbox"] {
    margin-left: 10px;
    accent-color: var(--primary);
    transform: scale(1.2);
    cursor: pointer;
}

.delta-gh-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.delta-gh-filter-actions button {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px !important;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #ddd;
    min-width: 0;
    font-family: bodyfont;
    transition: all 0.3s ease;
    background: var(--background);
    color: var(--text);
    box-shadow: none;
    outline: none;
    text-decoration: none;
    text-align: center;
    vertical-align: middle;
    line-height: 1.4;
    max-width: none;
}

#delta-gh-apply-filter {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

#delta-gh-apply-filter:hover {
    background: #b83636;
    border-color: #b83636;
}

#delta-gh-close-filter:hover {
    background: #f0f0f0;
    border-color: #999;
}

.delta-gh-knowledge-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
}

.delta-gh-knowledge-loader .delta-gh-loader-text {
    color: var(--primary);
    font-family: titrfont;
    font-size: 16px;
}

#delta-gh-gheydha-list {
    margin: 30px 0;
}

.delta-gh-gheyd-item {
    background: var(--background);
    border: 1px solid #ddd;
    border-radius: 10px !important;
    padding: 20px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.delta-gh-gheyd-item:hover {
    border-color: var(--primary);
    background: #fafafa;
}

.delta-gh-gheyd-text {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    padding-left: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delta-gh-gheyd-arrow {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('img/left.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.delta-gh-gheyd-item:hover .delta-gh-gheyd-arrow {
    opacity: 1;
}

#delta-gh-load-more {
    display: block;
    margin: 30px auto;
}

#delta-gh-load-more:hover {
    background: #ad3434;
}

#delta-gh-load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

#delta-gh-load-more:disabled:hover {
    background: #ccc;
    transform: none;
}

/* Modal Styles */
.delta-gh-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.delta-gh-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.delta-gh-modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: var(--background) !important;
    border-radius: 15px !important;
    width: 90% !important;
    max-width: 600px !important;
    max-height: 90vh;
    overflow-y: auto;
}

.delta-gh-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.delta-gh-modal-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 20px;
}

.delta-gh-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.delta-gh-modal-close:hover {
    background: #f0f0f0;
    color: var(--primary);
}

.delta-gh-modal-body {
    padding: 30px;
}

.delta-gh-modal-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
}

.delta-gh-modal-gheyd-content {
    direction: rtl;
}

.delta-gh-question-section,
.delta-gh-answer-section,
.delta-gh-source-section {
    margin-bottom: 25px;
}

.delta-gh-question-section h4,
.delta-gh-answer-section h4,
.delta-gh-source-section h4 {
    margin: 0 0 15px 0;
    color: var(--primary);
    font-size: 16px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.delta-gh-question-text-full {
    font-size: 16px;
    line-height: 1.6;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px !important;
    margin-bottom: 15px;
    font-family: titrfont;
}

.delta-gh-answer-text-full {
    font-size: 16px;
    line-height: 1.6;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 10px !important;
    margin-bottom: 15px;
    font-family: bodyfont;
    color: var(--success);
    font-weight: bold;
}

.delta-gh-source-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.delta-gh-source-item {
    background: #f0f0f0;
    color: var(--text);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.delta-gh-source-item.book-item.grade-10 {
    background: var(--grade-10-bg);
    color: var(--grade-10-text);
}

.delta-gh-source-item.book-item.grade-11 {
    background: var(--grade-11-bg);
    color: var(--grade-11-text);
}

.delta-gh-source-item.book-item.grade-12 {
    background: var(--grade-12-bg);
    color: var(--grade-12-text);
}

.delta-gh-modal-error {
    background: #ffeaea;
    color: var(--error);
    padding: 20px;
    border-radius: 10px !important;
    text-align: center;
    margin: 20px 0;
}

body.delta-gh-modal-open {
    overflow: hidden;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #delta-gh-app,
    #delta-gh-gheydnameh-app {
        padding: 15px;
    }
    
    .delta-gh-knowledge-header {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .delta-gh-search-container {
        flex: 3;
        min-width: 0;
    }
    
    .delta-gh-search-container input {
        font-size: 14px;
        padding: 12px 40px 12px 15px;
        height: 45px;
    }
    
    #delta-gh-search-clear {
        right: 10px;
        font-size: 14px;
    }
    
    .delta-gh-filter-container {
        flex: 1 !important;
        min-width: 100px !important;
        gap: 5px !important;
    }
    
    .delta-gh-filter-container button {
        font-size: 14px !important;
        padding: 12px 15px !important;
        height: 45px !important;
    }
    
    #delta-gh-filter-clear {
        font-size: 12px !important;
        padding: 6px 10px !important;
        margin-right: 5px !important;
    }
    
    .delta-gh-filter-content {
        padding: 20px;
        max-width: 350px;
    }
    
    .delta-gh-filter-content h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .delta-gh-filter-content label {
        font-size: 14px;
        padding: 8px;
        margin: 8px 0;
    }
    
    .delta-gh-filter-actions button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .delta-gh-stats {
        flex-direction: column;
    }
    
    .delta-gh-question-meta {
        justify-content: center;
    }
    
    .delta-gh-question {
        padding: 20px;
        min-height: 120px;
    }
    
    .delta-gh-question p {
        font-size: 16px;
    }
    
    .delta-gh-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .delta-gh-modal-header {
        padding: 15px 20px;
    }
    
    .delta-gh-modal-header h3 {
        font-size: 18px;
    }
    
    .delta-gh-modal-body {
        padding: 20px;
    }
    
    .delta-gh-question-text-full,
    .delta-gh-answer-text-full {
        font-size: 14px;
        padding: 12px;
    }
    
    .delta-gh-source-info {
        justify-content: right;
    }
    
    .delta-gh-source-item {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .delta-gh-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .delta-gh-modal-header {
        padding: 15px 20px;
    }
    
    .delta-gh-modal-header h3 {
        font-size: 18px;
    }
    
    .delta-gh-modal-body {
        padding: 20px;
    }
    
    .delta-gh-question-text-full,
    .delta-gh-answer-text-full {
        font-size: 14px;
        padding: 12px;
    }
    
    .delta-gh-source-info {
        justify-content: right;
    }
    
    .delta-gh-gheyd-text {
        font-size: 14px;
        padding-left: 25px;
    }
    
    .delta-gh-gheyd-arrow {
        left: 10px;
        width: 14px;
        height: 14px;
    }
} 