.configure-section {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
}

.existing-rules-info .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.config-panel,
.info-panel,
.existing-rules-panel {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-color);
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0;
}

.panel-body {
    padding: 1.5rem;
}

.rule-item {
    background: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: #f8faff;
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.remove-rule {
    width: 100%;
}

.form-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.guide-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.guide-content ul {
    font-size: 0.875rem;
    color: var(--secondary-color);
    padding-left: 1.25rem;
}

.guide-content li {
    margin-bottom: 0.5rem;
}

.example-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.existing-rule-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.rule-original {
    flex: 1;
    font-weight: 600;
    color: var(--dark-color);
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.rule-arrow {
    margin: 0 0.75rem;
    color: var(--primary-color);
}

.rule-replacement {
    flex: 1;
    font-weight: 600;
    color: var(--success-color);
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.rule-counter {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.75rem;
}

@media (max-width: 768px) {
    .configure-section {
        padding: 1rem;
    }
    
    .section-header {
        padding: 1.5rem;
    }
    
    .section-header .d-flex {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }
    
    .panel-header,
    .panel-body {
        padding: 1rem;
    }
    
    .rule-item {
        padding: 1rem;
    }
    
    .rule-item .row > div {
        margin-bottom: 1rem;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .remove-rule {
        width: auto;
    }
    
    .existing-rule-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .rule-arrow {
        margin: 0;
        transform: rotate(90deg);
    }
}