 :root {
     --primary: #4f46e5;
     --primary-light: #6366f1;
     --secondary: #f9fafb;
     --text: #1f2937;
     --text-light: #6b7280;
     --border: #e5e7eb;
     --success: #10b981;
     --error: #ef4444;
     --highlight: #fef08a;
 }

 .loading {
     display: inline-block;
     border: 2px solid rgba(255, 255, 255, 0.3);
     border-radius: 50%;
     border-top-color: white;
     animation: spin 1s ease-in-out infinite;
 }

 @keyframes spin {
     to {
         transform: rotate(360deg);
     }
 }

 .controls {
     padding: 1rem 1.5rem;
     background: var(--secondary);
     border-top: 1px solid var(--border);
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .highlight-char {
     text-decoration: underline dotted #ef5d1c;
     text-decoration-thickness: 2px;
     text-underline-offset: 3px;
     color: #ef5d1c;
     background: transparent;
     background-color: #fef3e2;
     font-weight: bold;
 }

 #outputText {
     white-space: normal;
     word-wrap: break-word;
     overflow-wrap: break-word;
     overflow: auto;
     max-height: 275px;
 }

 .stats {
     font-size: 0.875rem;
     color: var(--text-light);
 }

 .plagiarism-result {
     margin-top: 1rem;
     background: white;
     border-radius: 12px;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
     padding: 1.5rem;
 }

 .similarity-score {
     font-size: 2.5rem;
     font-weight: 700;
     text-align: center;
     margin: 1rem 0;
 }

 .score-low {
     color: var(--success);
 }

 .score-medium {
     color: var(--warning);
 }

 .score-high {
     color: var(--error);
 }

 .progress-bar {
     height: 10px;
     background: var(--border);
     border-radius: 5px;
     margin: 1rem 0;
     overflow: hidden;
 }

 .progress-fill {
     height: 100%;
     background: var(--primary);
     border-radius: 5px;
 }

 .sources-list {
     margin-top: 1.5rem;
 }

 .source-item {
     padding: 10px;
     border: 1px solid var(--border);
     border-radius: 8px;
     margin-bottom: 1rem;
     word-wrap: break-word;
     overflow-wrap: break-word;

 }

 .source-url {
     color: var(--primary);
     text-decoration: none;
     font-weight: 500;
     word-break: break-all;
 }

 .source-url:hover {
     text-decoration: underline;
 }

 .source-similarity {
     display: inline-block;
     padding: 0.25rem 0.5rem;
     background: var(--plagiarism);
     color: var(--error);
     border-radius: 4px;
     font-size: 0.875rem;
     margin-left: 0.5rem;
 }

 .output {

     background: white;
     padding: 1rem;

     min-height: 250px;
     font-size: 1rem;
     line-height: 1.8;
 }

 .download-btn {
     background: linear-gradient(to right, #fd7d02, #ef5d1c, #df3d33);
     color: #fff;
     border: none;
     padding: 10px 25px;
     font-size: 14px;
     border-radius: 20px;
     cursor: pointer;
     margin-top: 10px;
 }

 .file-option:hover {
     background-color: #e0efff;
 }
 .pdf-content {
  padding: 20px;
  font-family: 'Noto Sans Devanagari', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  white-space: normal; 
  word-break: break-word;
}