.idc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 32px;
}

.idc-header {
    text-align: center;
    margin-bottom: 30px;
}

.idc-header h1 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #1e293b, #2c7da0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.idc-header p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

.idc-language-bar {
    background: white;
    padding: 12px 20px;
    border-radius: 60px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.idc-languages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 6px 14px;
    background: #f1f5f9;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.lang-btn.active, .lang-btn:hover {
    background: #2c7da0;
    color: white;
}

.idc-tool-wrapper {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    padding: 35px;
    margin-bottom: 50px;
}

.idc-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 10px;
}

.idc-tab {
    background: none;
    border: none;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #64748b;
    border-radius: 40px;
    transition: all 0.3s;
}

.idc-tab.active {
    background: #2c7da0;
    color: white;
}

.idc-method-panel {
    display: none;
}

.idc-method-panel.active {
    display: block;
}

#idc-text-input {
    width: 100%;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

#idc-text-input:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.1);
}

.idc-stats {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    gap: 20px;
}

.idc-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    padding: 50px 20px;
    text-align: center;
    background: #fafcff;
    cursor: pointer;
    transition: all 0.3s;
}

.idc-upload-area:hover {
    border-color: #2c7da0;
    background: #f8fafc;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.file-formats {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
}

.idc-browse-btn {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    margin-top: 20px;
    cursor: pointer;
}

.idc-url-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
}

.idc-check-btn {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.idc-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 125, 160, 0.3);
}

.idc-loader {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 32px;
    margin-top: 30px;
}

.idc-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top-color: #2c7da0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.idc-progress {
    width: 300px;
    max-width: 80%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
}

.idc-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2c7da0, #60a5fa);
    border-radius: 10px;
    animation: progress 2s ease-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    30% { width: 45%; }
    70% { width: 85%; }
    100% { width: 100%; }
}

.idc-results-section {
    background: white;
    border-radius: 32px;
    padding: 30px;
    margin-top: 30px;
}

.idc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eef2f6;
}

.idc-report-actions {
    display: flex;
    gap: 12px;
}

.idc-icon-btn {
    padding: 8px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.idc-icon-btn.primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.idc-score-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.idc-score-card {
    padding: 25px;
    border-radius: 24px;
    text-align: center;
}

.idc-score-card.unique {
    background: linear-gradient(135deg, #e6f7e6, #c8e6c8);
}

.idc-score-card.plagiarized {
    background: linear-gradient(135deg, #ffe6e6, #ffd4d4);
}

.score-label {
    display: block;
    font-size: 14px;
    color: #4a5a6e;
    margin-bottom: 8px;
}

.score-value {
    font-size: 48px;
    font-weight: bold;
}

.idc-score-card.unique .score-value {
    color: #2e7d32;
}

.idc-score-card.plagiarized .score-value {
    color: #c62828;
}

.score-sub {
    font-size: 12px;
    color: #6c7a8e;
}

.idc-summary {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f8fafc;
    border-radius: 20px;
    margin-bottom: 30px;
}

.summary-item {
    flex: 1;
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #0f172a;
}

.idc-sources-section {
    margin-bottom: 30px;
}

.idc-sources-list {
    margin-top: 15px;
}

.source-card {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.source-card:hover {
    background: #f8fafc;
}

.source-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 5px;
}

.source-url {
    font-size: 12px;
    color: #2c7da0;
    word-break: break-all;
}

.source-similarity {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    padding: 3px 10px;
    background: #fee2e2;
    color: #c62828;
    border-radius: 20px;
}

.idc-highlight-section {
    margin-bottom: 25px;
}

.idc-highlighted-content {
    background: #fafcff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
}

.idc-highlight-unique {
    background: #e6f7e6;
    padding: 1px 0;
}

.idc-highlight-plagiarized {
    background: #ffe6e6;
    padding: 1px 0;
    border-bottom: 2px solid #c62828;
}

.idc-legend {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 16px;
    font-size: 13px;
    margin-bottom: 20px;
}

.legend-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

.unique-dot { background: #e6f7e6; border: 1px solid #2e7d32; }
.plagiarized-dot { background: #ffe6e6; border: 1px solid #c62828; }
.partial-dot { background: #fff3e0; border: 1px solid #f59e0b; }

.idc-disclaimer {
    background: #fff8e7;
    padding: 15px 20px;
    border-radius: 16px;
    font-size: 12px;
    color: #b76e0e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.feature {
    text-align: center;
    padding: 25px 20px;
    background: white;
    border-radius: 24px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.idc-small {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

.file-info {
    margin-top: 15px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .idc-container {
        padding: 20px 15px;
    }
    
    .idc-header h1 {
        font-size: 1.8rem;
    }
    
    .idc-tool-wrapper {
        padding: 20px;
    }
    
    .idc-tabs {
        flex-wrap: wrap;
    }
    
    .idc-score-cards {
        grid-template-columns: 1fr;
    }
    
    .idc-summary {
        flex-direction: column;
        gap: 12px;
    }
    
    .idc-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}