/* Global Styles */
.smt-tool-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.smt-tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.smt-tool-header h1 {
    font-size: 36px;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.smt-tool-subtitle {
    font-size: 18px;
    color: #64748b;
    margin: 0;
}

.smt-tool-description {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.smt-tool-description h3 {
    color: #334155;
    margin-top: 0;
}

.smt-tool-description ul {
    list-style: none;
    padding-left: 0;
}

.smt-tool-description li {
    padding: 8px 0;
    color: #475569;
}

.smt-tool-form {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
}

.smt-form-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
}

.smt-form-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.smt-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.smt-form-row label {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.smt-form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.smt-input-large, .smt-select, .smt-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.smt-input-large:focus, .smt-select:focus, .smt-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.smt-textarea {
    resize: vertical;
    min-height: 150px;
}

.smt-section-label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
    font-size: 14px;
}

.smt-expansion-modes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smt-mode-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.smt-mode-checkbox:hover {
    border-color: #667eea;
    background: #f8fafc;
}

.smt-mode-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.smt-mode-label {
    flex: 1;
}

.smt-mode-label i {
    color: #667eea;
    margin-right: 8px;
}

.smt-mode-label strong {
    color: #1e293b;
    font-size: 14px;
}

.smt-infinite-alert {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: pulse 3s infinite;
}

.smt-infinite-alert i {
    font-size: 24px;
}

.smt-infinite-alert strong {
    display: block;
    margin-bottom: 2px;
}

.smt-infinite-alert small {
    font-size: 12px;
    opacity: 0.9;
}

/* Buttons */
.smt-button-primary, .smt-button-secondary, .smt-button-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.smt-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.smt-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.smt-button-secondary {
    background: #f1f5f9;
    color: #334155;
}

.smt-button-secondary:hover {
    background: #e2e8f0;
}

.smt-button-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.smt-button-danger {
    background: #dc2626;
    color: white;
}

.smt-button-danger:hover {
    background: #b91c1c;
}

.smt-btn-lg {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Results Panel */
.smt-results-panel {
    display: flex;
    flex-direction: column;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.smt-results-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.smt-results-header-inline h3 {
    margin: 0;
    font-size: 20px;
    color: #1e293b;
}

.smt-status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.smt-status-indicator span {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

.status-ready {
    background: #f1f5f9;
    color: #64748b;
}

.status-running {
    background: #dbeafe;
    color: #1e40af;
    animation: pulse 2s infinite;
}

.status-finished {
    background: #d1fae5;
    color: #065f46;
}

.count-badge {
    background: #667eea;
    color: white;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
    font-size: 14px;
}

.smt-progress-bar-container {
    margin-bottom: 15px;
}

.smt-progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.smt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.smt-progress-text {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.smt-keywords-scrollable {
    height: 420px;
    overflow-y: auto;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 15px;
}

.smt-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #cbd5e1;
    text-align: center;
}

.smt-empty-state i {
    opacity: 0.3;
    margin-bottom: 15px;
}

.smt-empty-state small {
    margin-top: 10px;
    font-size: 12px;
}

.smt-keyword-item-live {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 4px;
}

.keyword-text {
    flex: 1;
    color: #334155;
    font-size: 13px;
}

.smt-keyword-item-live i {
    color: #10b981;
    font-size: 14px;
}

.smt-export-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.smt-loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-weight: 600;
}

.smt-error {
    text-align: center;
    padding: 40px;
    color: #dc2626;
    font-weight: 600;
}

.smt-info {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 13px;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Responsive */
@media (max-width: 1024px) {
    .smt-form-grid {
        grid-template-columns: 1fr;
    }
    
    .smt-export-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .smt-tool-header h1 {
        font-size: 28px;
    }
    
    .smt-form-row-split {
        grid-template-columns: 1fr;
    }
}