/* CSS ported from the original HTML, unchanged in look & feel */
#extract-links-container {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e1e5e9;
}
.el-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    text-align: center;
}
.el-header h1 { margin: 0; font-size: 28px; font-weight: 700; }
.el-header p { margin: 10px 0 0 0; opacity: 0.9; font-size: 16px; }
.el-content { padding: 30px; background: #fafbfc; }
.el-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}
.el-control-group { display: flex; flex-direction: column; gap: 8px; }
.el-control-group label { font-weight: 600; color: #2c3e50; font-size: 14px; }
.el-select, .el-input {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}
.el-select:focus, .el-input:focus { outline: none; border-color: #667eea; }
.el-textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    background: white;
    box-sizing: border-box;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}
.el-textarea:focus { outline: none; border-color: #667eea; }
.el-buttons { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; margin-bottom: 25px; }
.el-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    position: relative;
    overflow: hidden;
}
.el-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.el-btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.el-btn-secondary { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.el-btn-tertiary { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.el-btn-quaternary { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.el-btn-export { background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%); }
.el-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.el-btn:active { transform: translateY(0); }
.el-filters {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: none;
}
.el-filters.show { display: block; }
.el-filters h3 { margin: 0 0 15px 0; color: #2c3e50; font-size: 18px; }
.el-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.el-filter-section { padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #667eea; }
.el-filter-title { font-weight: 600; color: #495057; margin-bottom: 10px; font-size: 14px; }
.el-checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.el-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.el-checkbox input[type="checkbox"] { transform: scale(1.1); }
.el-results { display: none; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.el-results.show { display: grid; }
.el-result-panel {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    overflow: hidden;
    max-height: 500px;
}
.el-panel-header { background: #f8f9fa; padding: 15px; border-bottom: 1px solid #e1e5e9; display: flex; justify-content: space-between; align-items: center; }
.el-panel-title { font-weight: 600; color: #2c3e50; font-size: 16px; }
.el-panel-count { background: #667eea; color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.el-panel-actions { display: flex; gap: 8px; }
.el-mini-btn { background: #6c757d; color: white; border: none; padding: 6px 10px; border-radius: 4px; font-size: 11px; cursor: pointer; transition: all 0.3s ease; }
.el-mini-btn:hover { background: #5a6268; transform: scale(1.05); }
.el-panel-content { padding: 0; max-height: 400px; overflow-y: auto; }
.el-item { padding: 10px 15px; border-bottom: 1px solid #f8f9fa; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; }
.el-item:hover { background: #f8f9fa; }
.el-item:last-child { border-bottom: none; }
.el-item-content { flex: 1; font-family: 'Monaco', 'Menlo', 'Consolas', monospace; font-size: 12px; color: #495057; word-break: break-all; margin-right: 10px; }
.el-item-meta { font-size: 10px; color: #6c757d; margin-top: 2px; }
.el-item-actions { display: flex; gap: 5px; }
.el-item-btn { background: #667eea; color: white; border: none; padding: 4px 6px; border-radius: 3px; font-size: 9px; cursor: pointer; transition: all 0.3s ease; }
.el-item-btn:hover { background: #5a6fd8; }
.el-domain-tag { background: #e9ecef; color: #495057; padding: 2px 6px; border-radius: 10px; font-size: 10px; margin-left: 8px; }
.el-valid { color: #28a745; } .el-invalid { color: #dc3545; } .el-suspicious { color: #ffc107; }
.el-stats { display: none; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 20px; padding: 20px; background: white; border-radius: 10px; border: 1px solid #e1e5e9; }
.el-stats.show { display: grid; }
.el-stat { text-align: center; padding: 10px; background: #f8f9fa; border-radius: 8px; transition: all 0.3s ease; }
.el-stat:hover { background: #e9ecef; transform: translateY(-2px); }
.el-stat-value { font-size: 20px; font-weight: 700; color: #667eea; display: block; transition: all 0.3s ease; }
.el-stat-label { font-size: 11px; color: #666; margin-top: 5px; }
.el-analysis { background: white; border: 2px solid #e1e5e9; border-radius: 10px; padding: 20px; margin-bottom: 20px; display: none; }
.el-analysis.show { display: block; }
.el-analysis h3 { margin: 0 0 15px 0; color: #2c3e50; font-size: 18px; }
.el-analysis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.el-analysis-section { padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #667eea; }
.el-analysis-title { font-weight: 600; color: #495057; margin-bottom: 10px; font-size: 14px; }
.el-domain-list { max-height: 150px; overflow-y: auto; }
.el-domain-item { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 12px; }
.el-domain-name { font-family: 'Monaco', 'Menlo', 'Consolas', monospace; color: #495057; }
.el-domain-count { background: #667eea; color: white; padding: 2px 6px; border-radius: 8px; font-size: 10px; }
.el-export-section { background: white; border: 2px solid #e1e5e9; border-radius: 10px; padding: 20px; margin-bottom: 20px; display: none; }
.el-export-section.show { display: block; }
.el-export-section h3 { margin: 0 0 15px 0; color: #2c3e50; font-size: 18px; }
.el-export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.el-loading { display: none; text-align: center; padding: 20px; color: #667eea; font-weight: 600; }
.el-loading::after { content: ''; display: inline-block; width: 20px; height: 20px; border: 2px solid #667eea; border-radius: 50%; border-top-color: transparent; animation: spin 1s ease-in-out infinite; margin-left: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.el-success { background: #d4edda; color: #155724; padding: 15px; border-radius: 8px; border: 1px solid #c3e6cb; margin-bottom: 20px; display: none; }
.el-error { background: #f8d7da; color: #721c24; padding: 15px; border-radius: 8px; border: 1px solid #f5c6cb; margin-bottom: 20px; display: none; }

@media (max-width: 968px) {
    #extract-links-container { margin: 10px; }
    .el-content { padding: 20px; }
    .el-controls { grid-template-columns: 1fr; }
    .el-buttons { flex-direction: column; }
    .el-btn { width: 100%; }
    .el-results { grid-template-columns: 1fr; }
    .el-filter-grid, .el-analysis-grid, .el-export-grid { grid-template-columns: 1fr; }
    .el-header h1 { font-size: 24px; }
    .el-header p { font-size: 14px; }
}
