.iwc-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;
}

.iwc-header {
    text-align: center;
    margin-bottom: 30px;
}

.iwc-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;
}

.iwc-header p {
    font-size: 1.1rem;
    color: #475569;
}

.iwc-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);
}

.iwc-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;
}

.iwc-tool-wrapper {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    padding: 35px;
    margin-bottom: 50px;
}

.iwc-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 10px;
}

.iwc-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;
}

.iwc-tab.active {
    background: #2c7da0;
    color: white;
}

.iwc-method-panel {
    display: none;
}

.iwc-method-panel.active {
    display: block;
}

#iwc-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;
}

#iwc-text-input:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.1);
}

.iwc-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    padding: 50px 20px;
    text-align: center;
    background: #fafcff;
    cursor: pointer;
    transition: all 0.3s;
}

.iwc-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;
}

.iwc-browse-btn {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    margin-top: 20px;
    cursor: pointer;
}

.iwc-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0 30px;
    flex-wrap: wrap;
}

.iwc-primary-btn, .iwc-secondary-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.iwc-primary-btn {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
    color: white;
}

.iwc-secondary-btn {
    background: #f1f5f9;
    color: #334155;
}

.iwc-primary-btn:hover, .iwc-secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.iwc-results-dashboard {
    margin-top: 20px;
    border-top: 2px solid #eef2f6;
    padding-top: 25px;
}

.iwc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.iwc-stat-card {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #eef2f6;
}

.stat-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #0f172a;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
}

.iwc-text-preview {
    margin: 25px 0;
}

.iwc-text-preview h4 {
    margin-bottom: 12px;
    color: #0f172a;
}

.preview-content {
    background: #fafcff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.iwc-additional-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.metric-group h4 {
    margin-bottom: 15px;
    color: #0f172a;
    font-size: 1rem;
}

.metric-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.metric-bar-item span:first-child {
    width: 130px;
    color: #475569;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2c7da0, #60a5fa);
    border-radius: 10px;
    transition: width 0.3s;
}

.case-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-btn {
    padding: 8px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.case-btn:hover {
    background: #2c7da0;
    color: white;
}

.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;
}

.feature h4 {
    margin: 8px 0;
    color: #0f172a;
}

.feature p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.iwc-disclaimer {
    background: #e6f7e6;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 13px;
    color: #2e7d32;
    text-align: center;
    margin-top: 30px;
}

.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) {
    .iwc-container {
        padding: 20px 15px;
    }
    
    .iwc-header h1 {
        font-size: 1.8rem;
    }
    
    .iwc-tool-wrapper {
        padding: 20px;
    }
    
    .iwc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .iwc-additional-metrics {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .metric-bar-item span:first-child {
        width: 100px;
    }
}