.irtg-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%, #f0f4f8 100%);
    border-radius: 32px;
}

.irtg-header {
    text-align: center;
    margin-bottom: 40px;
}

.irtg-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;
}

.irtg-header p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

.irtg-tool-wrapper {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    padding: 35px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .irtg-tool-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.irtg-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f6;
}

.irtg-section h3 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: #0f172a;
}

.irtg-input-group {
    margin-bottom: 18px;
}

.irtg-input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #334155;
}

.irtg-input, .irtg-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fafcff;
}

.irtg-input:focus, .irtg-select:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.1);
}

.irtg-input-group small {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 5px;
}

.irtg-bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.irtg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
}

.irtg-note {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 15px;
}

.irtg-disallow-item, .irtg-allow-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.irtg-disallow-input, .irtg-allow-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-family: monospace;
}

.irtg-remove-btn, .irtg-remove-allow-btn {
    background: #fee2e2;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    color: #991b1b;
    font-size: 14px;
    transition: all 0.2s;
}

.irtg-remove-btn:hover, .irtg-remove-allow-btn:hover {
    background: #fecaca;
}

.irtg-add-btn {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    color: #2c7da0;
    margin-top: 8px;
    transition: all 0.2s;
}

.irtg-add-btn:hover {
    background: #e2e8f0;
}

.irtg-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.irtg-generate-btn, .irtg-reset-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.irtg-generate-btn {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
    color: white;
    flex: 2;
}

.irtg-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 125, 160, 0.3);
}

.irtg-reset-btn {
    background: #f1f5f9;
    color: #475569;
    flex: 1;
}

.irtg-reset-btn:hover {
    background: #e2e8f0;
}

/* Result Section */
.irtg-result-section {
    background: #f8fafc;
    border-radius: 24px;
    padding: 20px;
}

.irtg-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.irtg-result-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
}

.irtg-result-actions {
    display: flex;
    gap: 10px;
}

.irtg-icon-btn {
    padding: 6px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.irtg-icon-btn:hover {
    background: #f1f5f9;
}

.irtg-result-content {
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 16px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Info Section */
.irtg-info-section {
    margin: 40px 0 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-card h5 {
    margin-bottom: 12px;
    color: #2c7da0;
    font-size: 1rem;
}

.info-card p {
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

.irtg-disclaimer {
    background: #fef9e3;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 12px;
    color: #92400e;
    margin-top: 20px;
}

.irtg-features {
    margin-top: 50px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature {
    background: white;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature span {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 10px;
}

.feature h4 {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.feature p {
    font-size: 11px;
    color: #64748b;
}

@media (max-width: 768px) {
    .irtg-container {
        padding: 20px 15px;
    }
    .irtg-header h1 {
        font-size: 1.8rem;
    }
    .irtg-tool-wrapper {
        padding: 20px;
    }
    .irtg-actions {
        flex-direction: column;
    }
    .irtg-generate-btn, .irtg-reset-btn {
        width: 100%;
    }
    .irtg-bots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}