/* Plagiarism Checker Styles */
.plagiarism-checker-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.checker-header {
    text-align: center;
    margin-bottom: 30px;
}

.checker-header h2 {
    color: #1a1a1a;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.checker-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.checker-form {
    margin-bottom: 30px;
}

#plagiarism-text {
    width: 100%;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#plagiarism-text:focus {
    outline: none;
    border-color: #4285f4;
}

.checker-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.word-count {
    color: #666;
    font-size: 14px;
}

.word-count span {
    font-weight: 600;
    color: #1a1a1a;
}

.check-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.check-btn:active {
    transform: translateY(0);
}

.check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.results-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-header h3 {
    color: #1a1a1a;
    font-size: 24px;
    margin: 0;
}

.plagiarism-score {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 10px rgba(17, 153, 142, 0.3);
}

.score-circle.low-score {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 10px rgba(245, 87, 108, 0.3);
}

.score-circle.medium-score {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 10px rgba(250, 112, 154, 0.3);
}

.score-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.results-content {
    margin-top: 20px;
}

.result-item {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e0e0e0;
}

.result-item.unique {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.result-item.plagiarized {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.result-sentence {
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.result-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-status.unique {
    background: #22c55e;
    color: white;
}

.result-status.plagiarized {
    background: #ef4444;
    color: white;
}

.match-sources {
    margin-top: 12px;
}

.match-sources h4 {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.source-link {
    display: block;
    color: #4285f4;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 5px;
    word-break: break-all;
}

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

.summary-stats {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 100px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .plagiarism-checker-container {
        padding: 20px;
        margin: 20px;
    }
    
    .checker-header h2 {
        font-size: 24px;
    }
    
    .checker-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .check-btn {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 15px;
    }
}
