.ipc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ipc-header {
    text-align: center;
    margin-bottom: 40px;
}

.ipc-header h1 {
    font-size: 2.5rem;
    color: #1a2a3a;
    margin-bottom: 10px;
}

.ipc-tool-wrapper {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.ipc-upload-options {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eef2f6;
}

.ipc-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #6c7a8e;
    transition: all 0.3s;
}

.ipc-tab.active {
    color: #2c7da0;
    border-bottom: 3px solid #2c7da0;
    margin-bottom: -2px;
}

.ipc-method-panel {
    display: none;
}

.ipc-method-panel.active {
    display: block;
}

#plagiarism-text {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s;
}

#plagiarism-text:focus {
    outline: none;
    border-color: #2c7da0;
}

.ipc-stats {
    margin-top: 10px;
    font-size: 14px;
    color: #6c7a8e;
    display: flex;
    gap: 20px;
}

.ipc-url-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
}

.ipc-check-btn {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.ipc-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44,125,160,0.3);
}

.ipc-loader {
    text-align: center;
    padding: 40px;
}

.ipc-spinner {
    width: 50px;
    height: 50px;
    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); }
}

.ipc-results-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eef2f6;
}

.ipc-score-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.ipc-score-card {
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.ipc-score-card.unique {
    background: linear-gradient(135deg, #e6f7e6, #c8e6c8);
}

.ipc-score-card.plagiarized {
    background: linear-gradient(135deg, #ffe6e6, #ffd4d4);
}

.score-label {
    display: block;
    font-size: 14px;
    color: #4a5a6e;
    margin-bottom: 10px;
}

.score-value {
    font-size: 36px;
    font-weight: bold;
}

.ipc-score-card.unique .score-value {
    color: #2e7d32;
}

.ipc-score-card.plagiarized .score-value {
    color: #c62828;
}

.ipc-sources-list {
    margin-top: 15px;
}

.source-item {
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
}

.source-title {
    font-weight: 600;
    color: #1a2a3a;
    margin-bottom: 5px;
}

.source-url {
    font-size: 13px;
    color: #2c7da0;
    word-break: break-all;
}

.source-similarity {
    font-size: 13px;
    color: #e67e22;
    margin-top: 5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.feature span {
    font-size: 32px;
}

.ipc-disclaimer {
    background: #fff8e7;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 13px;
    color: #b76e0e;
}

.ipc-note {
    font-size: 12px;
    color: #6c7a8e;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .ipc-tool-wrapper {
        padding: 20px;
    }
    
    .ipc-score-cards {
        grid-template-columns: 1fr;
    }
    
    .ipc-header h1 {
        font-size: 1.8rem;
    }
}