.irc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-radius: 32px;
}

.irc-header {
    text-align: center;
    margin-bottom: 40px;
}

.irc-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;
}

.irc-header p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

.irc-tool-wrapper {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    padding: 35px;
    margin-bottom: 40px;
}

.irc-input-area textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    font-size: 16px;
    line-height: 1.7;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: all 0.3s;
}

.irc-input-area textarea:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 4px rgba(44, 125, 160, 0.1);
}

.irc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 20px;
    font-size: 14px;
    color: #1e293b;
}

.irc-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.irc-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.irc-analyze-btn, .irc-clear-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.irc-analyze-btn {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
    color: white;
    flex: 2;
    justify-content: center;
}

.irc-analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 125, 160, 0.3);
}

.irc-clear-btn {
    background: #f1f5f9;
    color: #475569;
    flex: 1;
    justify-content: center;
}

.irc-clear-btn:hover {
    background: #e2e8f0;
}

.irc-loader {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 32px;
    margin-top: 30px;
}

.irc-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); }
}

.irc-progress {
    width: 300px;
    max-width: 80%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
}

.irc-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%; }
}

.irc-results-section {
    background: white;
    border-radius: 32px;
    padding: 35px;
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.irc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eef2f6;
}

.irc-results-header h3 {
    font-size: 1.5rem;
    color: #0f172a;
}

.irc-actions-small {
    display: flex;
    gap: 12px;
}

.irc-icon-btn {
    padding: 8px 18px;
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.irc-icon-btn:hover {
    background: #e2e8f0;
}

.irc-overview-card {
    background: linear-gradient(135deg, #f0f9ff, #e6f7f0);
    border-radius: 28px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.irc-overview-card h4 {
    margin-bottom: 15px;
    color: #0f172a;
}

.irc-overall-rating {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.irc-grade-level {
    font-size: 1rem;
    color: #475569;
}

.irc-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.irc-score-card {
    background: #fafcff;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #eef2f6;
    transition: all 0.3s;
}

.irc-score-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.score-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.score-icon {
    font-size: 28px;
}

.score-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #334155;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c7da0;
    margin: 10px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.score-description {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0;
}

.score-range {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 8px;
}

.irc-stats-card, .irc-complex-section, .irc-long-words-section, .irc-recommendations-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 25px;
}

.irc-stats-card h4, .irc-complex-section h4, .irc-long-words-section h4, .irc-recommendations-card h4 {
    margin-bottom: 18px;
    color: #0f172a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-item {
    background: white;
    padding: 15px;
    border-radius: 16px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2c7da0;
}

.complex-sentences-list, .long-words-list {
    max-height: 200px;
    overflow-y: auto;
}

.complex-sentence-item, .long-word-item {
    background: white;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    border-left: 3px solid #f39c12;
    font-size: 14px;
    line-height: 1.5;
}

.long-word-item {
    border-left-color: #2c7da0;
    display: inline-block;
    margin: 4px;
    background: #eef2ff;
}

.recommendations-list {
    list-style: none;
    padding: 0;
}

.recommendations-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.irc-info-section {
    margin: 30px 0 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.info-card {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 18px;
}

.info-card h5 {
    margin-bottom: 12px;
    color: #1e293b;
}

.info-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

.irc-disclaimer {
    background: #fef9e3;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 12px;
    color: #92400e;
    margin-top: 25px;
}

.irc-features {
    margin-top: 50px;
    text-align: center;
}

.irc-features h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.feature {
    background: white;
    border-radius: 20px;
    padding: 22px;
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature span {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.feature p {
    font-size: 12px;
    color: #64748b;
}

.irc-small {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

.irc-note {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
    font-style: italic;
}

@media (max-width: 768px) {
    .irc-container {
        padding: 20px 15px;
    }
    
    .irc-header h1 {
        font-size: 1.8rem;
    }
    
    .irc-tool-wrapper {
        padding: 20px;
    }
    
    .irc-score-grid {
        grid-template-columns: 1fr;
    }
    
    .irc-actions {
        flex-direction: column;
    }
    
    .irc-analyze-btn, .irc-clear-btn {
        width: 100%;
    }
    
    .irc-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}