.igc-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;
}

.igc-header {
    text-align: center;
    margin-bottom: 40px;
}

.igc-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;
}

.igc-header p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

.igc-tool-wrapper {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    padding: 35px;
    margin-bottom: 50px;
}

.igc-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 10px;
}

.igc-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;
}

.igc-tab.active {
    background: #2c7da0;
    color: white;
}

.igc-method-panel {
    display: none;
}

.igc-method-panel.active {
    display: block;
}

#igc-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;
}

#igc-text-input:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.1);
}

.igc-stats {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    gap: 20px;
}

.igc-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    padding: 50px 20px;
    text-align: center;
    background: #fafcff;
    cursor: pointer;
    transition: all 0.3s;
}

.igc-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;
}

.igc-browse-btn {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    margin-top: 20px;
    cursor: pointer;
}

.igc-language-section {
    margin: 20px 0;
}

.igc-language-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #0f172a;
}

.igc-language-select {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
}

.igc-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: 20px;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.igc-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 125, 160, 0.3);
}

.igc-loader {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 32px;
    margin-top: 30px;
}

.igc-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); }
}

.igc-progress {
    width: 300px;
    max-width: 80%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
}

.igc-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2c7da0, #60a5fa);
    animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.igc-results-section {
    background: white;
    border-radius: 32px;
    padding: 30px;
    margin-top: 30px;
}

.igc-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;
}

.igc-actions {
    display: flex;
    gap: 12px;
}

.igc-icon-btn {
    padding: 8px 18px;
    background: #f1f5f9;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.igc-icon-btn:hover {
    background: #e2e8f0;
}

.igc-score-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.igc-score-card {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid #eef2f6;
}

.score-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.score-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #2c7da0;
}

.score-label {
    font-size: 12px;
    color: #64748b;
}

.igc-error-summary {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 20px;
    margin-bottom: 30px;
}

.error-summary-item {
    text-align: center;
}

.error-icon {
    font-size: 24px;
    display: block;
}

.error-summary-item span:nth-child(2) {
    font-size: 28px;
    font-weight: bold;
    display: block;
    color: #0f172a;
}

.igc-corrected-section {
    margin-bottom: 30px;
}

.igc-corrected-section h4 {
    margin-bottom: 12px;
}

.igc-corrected-text {
    background: #fafcff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    min-height: 200px;
    line-height: 1.7;
    font-size: 15px;
    outline: none;
    overflow-y: auto;
}

.igc-corrected-text:focus {
    border-color: #2c7da0;
}

.igc-errors-list {
    margin-bottom: 30px;
}

.igc-errors-list h4 {
    margin-bottom: 15px;
}

.errors-container {
    max-height: 400px;
    overflow-y: auto;
}

.error-item {
    background: #fff8e7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.error-info {
    flex: 1;
}

.error-type {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.error-type.spelling { background: #fee2e2; color: #991b1b; }
.error-type.grammar { background: #fef9c3; color: #854d0e; }
.error-type.style { background: #d9f99d; color: #3f6212; }
.error-type.capitalization { background: #cffafe; color: #0e7490; }

.error-message {
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 8px;
}

.error-context {
    font-size: 12px;
    color: #64748b;
    font-family: monospace;
}

.error-suggestions {
    min-width: 200px;
}

.suggestion-btn {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    margin: 3px;
    transition: all 0.2s;
}

.suggestion-btn:hover {
    background: #1f5e7a;
    transform: scale(0.98);
}

.igc-tips-section {
    background: #f0f9ff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
}

.writing-tips {
    margin-top: 12px;
}

.tip-item {
    padding: 8px 0;
    border-bottom: 1px solid #e0f2fe;
}

.igc-disclaimer {
    background: #e6f7e6;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 12px;
    color: #2e7d32;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature {
    text-align: center;
    padding: 22px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.05);
}

.feature span {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.igc-small {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

.igc-note {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
    text-align: right;
}

.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) {
    .igc-container {
        padding: 20px 15px;
    }
    
    .igc-header h1 {
        font-size: 1.8rem;
    }
    
    .igc-tool-wrapper {
        padding: 20px;
    }
    
    .igc-score-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .igc-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .error-item {
        flex-direction: column;
    }
}