.editor-wrapper {
    display: flex;
    gap: 16px;
    /* margin-bottom: 12px; */
}

.submit-section {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

/* Tool section CSS */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 0px;
}

/* === Segment Buttons === */
.segment {
    display: flex;
    border: 1px solid #d3d3d3;
    padding: 4px;
    /* overflow: hidden; */
}

.segment-btn {
    padding: 4px 12px;
    background: transparent;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.segment-btn:hover,
.segment-btn.active_text_analysis,
.segment-btn.active_text_aggregate,
.segment-btn.active_text_lang {
    background: #f1f1f1;
    border-radius: 2px;
}

/* === Dropdown Styles === */
.dropdown__wrapper {
    position: relative;
}

.dropdown__toggle {
    cursor: pointer;
    background: transparent;
    border: none !important;
    font-size: 14px;
    padding: 4px 12px;
}

/* Hidden by default */
.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    gap: 20px;
    white-space: nowrap;
    display: none;
    /* Start hidden */
}

/* Visible when toggled */
.dropdown__menu.show {
    display: flex;
}

/* Dropdown Columns & Items */
.dropdown__column {
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.dropdown__item {
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

.dropdown__item:hover {
    background: #f1f1f1;
}
/* End Tool section CSS */

.inner_container {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.editor-block {
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    background: #ffffff;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
}
.count_chnages {
    display: flex;
    gap: 5px;
    align-items: center;
    position: relative;
}
.count_chnages span {
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 2px 4px;
}
.count_chnages .removals {
    background-color: #ff00001a;
}
.count_chnages .additions {
    background-color: #03a7091a;
}

.upload-btn {
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.editor-container {
    height: 250px !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

.button-wrap {
    text-align: left;
}

.swap__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    height: 36px;
    width: 36px;
}
.diff-line {
    width: 100% !important;
    cursor: pointer !important;
}

.source__copy__icon {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.diff-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin: 20px 0; */
    text-align: center;
    /* Center the button */
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.mergin_btns_container {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.mergin_btns_container span {
    cursor: pointer;
}

.merge_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
    border-radius: 6px;
}
.merge_btn button {
    border: none;
}

.CodeMirror {
    height: 300px !important;
    width: 100% !important;
    max-width: 100% !important;
    /* overflow: auto !important; */
    font-size: 13px !important;
    border: 1px solid #ddd !important;
    box-sizing: border-box;
    padding-bottom: 60px;
}

.CodeMirror-scroll {
    overflow: auto !important;
    min-height: 100% !important;
    min-width: 100% !important;
}

.CodeMirror-lines {
    max-width: 100% !important;
    word-break: break-all !important;
    /* Prevent horizontal expansion */
}
.CodeMirror-gutters {
    border: none !important;
    background-color: #fafbfc !important;
}

.CodeMirror pre {
    white-space: pre-wrap !important;
    /* Allow wrapping within lines */
    word-break: break-all !important;
}

.CodeMirror-wrap pre {
    word-break: break-word !important;
}
.diff-added .CodeMirror-linebackground {
    cursor: pointer !important;
}
.diff-removed .CodeMirror-linebackground {
    cursor: pointer !important;
}

.CodeMirror .diff-removed {
    background-color: #ff000024 !important;
    cursor: pointer !important;
}

.CodeMirror .diff-added {
    background-color: #03a70924 !important;
    cursor: pointer !important;
}
.CodeMirror .inline-removed {
    background-color: #6a040430; /* slightly stronger red */
    border-radius: 3px;
    padding: 0 2px;
    cursor: pointer !important;
}

.CodeMirror .inline-added {
    background-color: #005f0330; /* slightly stronger green */
    border-radius: 3px;
    padding: 0 2px;
    cursor: pointer !important;
}
.submit-btn,
.blue-btn {
    padding: 6px 12px;
}
#removal_count,
#addition_count {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.action__info__card {
    position: absolute;
    border: 1px solid #e2e8f0;
    width: 220px; /* Slightly wider */
    top: 50px;
    left: 20px;
    background-color: #fff;
    padding: 16px; /* More padding */
    border-radius: 8px; /* Softer rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Deeper shadow */
    z-index: 9999;
    font-family: "Segoe UI", Roboto, sans-serif; /* Modern font */
    transition: all 0.2s ease; /* Smooth transitions */
}

.action__info__card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

.action__info__card b {
    display: block;
    font-size: 14px;
    color: #4b5563; /* Dark gray */
    margin-bottom: 12px;
    font-weight: 600;
}

.card__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0; /* Better vertical spacing */
    border-bottom: 1px solid transparent; /* Prepare for hover effect */
    transition: all 0.2s ease;
}

.card__content:hover {
    background-color: #f8fafc; /* Light hover background */
    border-bottom: 1px solid #e2e8f0; /* Subtle separator */
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 4px;
    cursor: pointer;
}

.card__content p {
    margin: 0;
    font-size: 13px;
    color: #64748b; /* Medium gray */
}

.card__content p:first-child {
    font-weight: 500;
}

.card__content__value {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px; /* Slightly more gap */
}

.text-danger {
    color: #dc2626 !important;
    font-weight: 500;
}
.text-success {
    color: #16a34a !important;
    font-weight: 500;
}

hr {
    border: none;
    height: 1px;
    background-color: #e2e8f0;
    margin: 12px 0;
}

/* Add some animation to the numbers */
.card__content p:last-child {
    font-weight: 600;
    color: #1e293b; /* Darker text for numbers */
    transition: transform 0.2s ease;
}

.card__content:hover p:last-child {
    transform: scale(1.05); /* Slight emphasis on hover */
}

.changed-block-code {
    background: #f7f7e7 !important;
    border-left: 3px solid #f0b400;
    /* Add more styles as needed */
}

@media (max-width: 768px) {
    .editor-wrapper {
        flex-direction: column;
    }

    .editor-block {
        width: 100%;
    }

    .button-container {
        align-items: center;
        /* flex-direction: row-reverse; */
    }

    /* .merge_btn img {
        transform: rotate(90deg);
    } */

    .button-wrap {
        text-align: left;
    }
    .merge_btn {
        width: 100%;
        justify-content: center;
    }
    .swap__btn {
        width: 100%;
        justify-content: center;
    }
    .submit-section {
        margin-top: 13px !important;
    }
}
