@import "variables.css";

body{
    font-family: Tajawal,'Open Sans', 'Cairo', sans-serif;
}
label{
    margin-bottom: unset;
}
#content{
    min-height: unset;
    padding: 16px 0;
}
.main-layout{
    max-width: 100%;
    width: 100%;
    padding: 0 8px;
}

header{
    padding: 8px 0;
}
.upload-new-file button[type='submit'], .upload-new-file input[type='submit']{
    margin:8px 15px 0 0;
}
.upload-new-file{
    margin-top: unset;
}
.uploaded-files{
    margin-top: unset;
}
.uploaded-files table{
    margin-top: 32px;
}
.list-info{
    display: flex;
    justify-content: space-between;
    margin-top:32px;
}

/*Detail Page*/
.main-content{
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-height: 800px;
}

.top-section{
    display: flex;
    padding: 24px 24px 0 24px;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-radius: 20px;
    background: var(--Neutral-Colors-White);
    box-shadow: 0 2px 6px 0 rgba(13, 10, 44, 0.08);
}
.top-section .file-metadata h1{
    color: #000;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
}
.top-section .file-metadata p{
    color: #9291A5;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

#report-download{
    background: #0a78b7;
    border: 2px solid #0a78b7;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    max-width: 179px;
    padding: 0px 8px;
    height: 36px;
}

.viewPercentTextSummery {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: unset;
    margin: unset;
    color: #2D2D2D;
    align-items: center;
}
.viewPercentTextSummery span{
    width: auto;
    height: fit-content;
    font-size: 18px;
    font-weight: 400;
}
.viewPercentTextSummery h3{
    font-size: 38px;
    font-weight: 700;
    font-family: Poppins;
    margin: unset;
}

.top-section .percentage-section{
    gap: 16px;
}
.top-section .percent-color{
    height: 3px;
    width: 0;
}

.top-section .percent-color.active {
    width: 100%;
    transition: width 1.5s ease;
}

.content-viewer{
    width: 100%;
    height: 600px;
    border-radius: 40px;
    border: 1px solid #F4F4F3;
}

.sidebar-tabs{
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    border: 1px solid #F4F4F3;
}

#include-tab + label, #exclude-tab + label{
    display: inline-flex;
    color: #000;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 17.869px;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
}

#include-tab:checked + label, #exclude-tab:checked + label{
    color: rgb(250 251 251);
    border-radius: 8.935px;
    background: #0A78B7;
    font-weight: 700;
}

.sidebar li.dropdown{
    border-bottom:1px solid rgba(0, 0, 0, 0.10);
}

.sidebar li.dropdown:last-child{
    border-bottom: unset;
}

.percent-container{
    gap: 8px;
    text-align: center;
    justify-content: space-between;
    width: 168px;
}
.percent-container .exclude-source{
    line-height: 0;
}

.reader{
    width: 95%;
}
.plag-info{
    padding: unset;
}
.plag-info .percent-container{
    margin: unset;
    line-height: normal;
    gap: 16px;
    justify-content: flex-end;
}
.plag-info .percent-container a{
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
}
.plag-info .percent-container span{
    line-height: 0;
}
.exclude-content .plag-info {
    border-bottom: unset;
}
.exclude-content .plag-info .plag-source{
    text-align: start;
}
.dropdown-btn.plag-info .percent{
    font-weight: 700;
    width: 29px;
}

.up-down-btn{
    display: flex;
    width: 21px;
    height: 21px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #778CA2;
}

.sidebar li ,.sidebar li a{
    color: #202630;
}

.sidebar li a{
    font-weight: 400;
    font-size: 16px;
}

.sidebar li .plag-source{
    width: 100%;
    min-height: 96px;
    text-wrap-mode: wrap;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    color: #202630;
    padding: 8px;
}
.sidebar li .dropdown-btn .doc-title.disabled{
    pointer-events: auto;
    cursor: not-allowed;
}
.sidebar li .dropdown-btn .doc-title:active{
    pointer-events: none;
}
.sidebar li .dropdown-btn .up-down-btn i{
    line-height: 0.5;
}
.sidebar li .dropdown-btn .up-down-btn i:before{
    font-size: smaller;
    color: whitesmoke;
}

.sidebar li.menu-opened .dropdown-btn{
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.sidebar li.menu-opened .dropdown-btn .up-down-btn i:before{
    content: '\f077';
    line-height: 1;
}
.sidebar .dropdown-list > li{
border-bottom: unset!important;
}
/*build paragraphs view changes*/

.sidebar .slider {
    position: relative;
    max-width: 100%;
    margin-inline: auto;
    display: none;
}
.sidebar .dropdown-list{
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
}


.sidebar .dropdown-list > li {
    display: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.sidebar .dropdown-list > li.is-active {
    display: block;                /* show only the active item */
    animation: fade 220ms ease-in;
}

@keyframes fade {
    from { opacity: 0 }
    to   { opacity: 1 }
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.slider-actions{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    line-height: normal;
}
.slider-actions .exclude, .slider-actions .include{
    width: 21px;
    height: 21px;
    background: rgba(10, 120, 183, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}
/* arrows */
.sidebar{
    width: 35%;
}
.reader{
    max-width: 63%;
}
.sidebar .next-prev-container{
    display:flex;
    gap: 16px;
}
.sidebar .arrow {
    border: 0;
    width: 21px;
    height: 21px;
    background: rgba(10, 120, 183, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: opacity .15s ease;
    user-select: none;
}

.sidebar .arrow[disabled]{
    opacity: .35;
    pointer-events: none;
}

/* optional: small label for index */
.sidebar .counter {
    text-align: center;
    font-size: 13px;
    opacity: .8;
}

.shimmer-wrapper {
    width: 100%;
    height: 96px; /* adjust as needed */
    background: #f5f5f5;
    border-radius: 8px;
    animation: fade 1.5s infinite ease-in-out;
}
.show-more {
    margin: 0 4px;
    cursor: pointer;
    color: #0A78B7;
    display: inline;
}

.slide-content{
    font-size: 14px;
}
.slide-content-more{
    display: none;
}
.slide-content .show-more.active{
    display: none;
}
.slide-content:has(.show-more.active) .slide-content-more{
    display: inline-block;
}

.slide-content em{
    background-color: var(--plag-highlight-color);
}
.flash-highlight { animation: flashBg 0.5s ease-in-out alternate 3; }

@keyframes flashBg { from { background-color: yellow; } to   { background-color: transparent; } }
/* build paragraphs view changes*/