body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.card:hover {
    /*transform: translateY(-5px);*/
}
.btn-primary {
    background: linear-gradient(135deg, #AD9259 0%, #82461D 100%);
    border: none;
    border-radius: 25px;
    padding: 8px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.progress {
    height: 25px;
    border-radius: 15px;
    background: rgba(102, 126, 234, 0.1);
}
.progress-bar {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 15px;
}
.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}
.status-running {
    background: #28a745;
    animation: pulse 2s infinite;
}
.status-stopped {
    background: #dc3545;
}
.status-idle {
    background: #6c757d;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
#history{
    font-size: 0.8rem;
}
.field-selector {
    max-height: 300px;
    overflow-y: auto;
}
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.card-hover {
    transition: all 0.2s ease;
}

.badge .btn-close {
    padding: 0;
    margin: 0;
    font-size: 0.5rem;
}

.badge .btn-close:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Listbox Styles */
.listbox-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
}

.listbox {
    margin: 0;
    padding: 0;
    list-style: none;
}

.listbox-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border: none;
    border-radius: 0;
    transition: background-color 0.15s ease;
}

.listbox-item:hover {
    background-color: #f8f9fa;
}

.listbox-item.selected {
    background-color: #0d6efd;
    color: white;
}

.listbox-item.selected-item {
    display: none !important;
}

.listbox-item:first-child {
    border-radius: 0;
}

.listbox-item:last-child {
    border-radius: 0 0 0.375rem 0.375rem;
}

/* Focus styles */
.form-control:focus + .listbox-container {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.listbox-group-header {
    background-color: #f8f9fa;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    cursor: default;
}

.listbox-group-header:hover {
    background-color: #f8f9fa;
}

.search-terms-container {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-dropdown .list-group-item {
    cursor: pointer;
    border: none;
    border-bottom: 1px solid #eee;
}

.autocomplete-dropdown .list-group-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-dropdown .list-group-item:last-child {
    border-bottom: none;
}

/* Sticky Modal Footer */
.modal-footer.sticky-bottom {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    z-index: 1050;
}

/* Modal Body mit Scroll */
.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}
.badge{
    background: linear-gradient(135deg, #AD9259 0%, #82461D 100%);
}
#proxyServer{
    font-size: 0.75rem;
}
/* Modal-Footer Buttons immer nebeneinander */
.modal-footer .d-flex > div:last-child {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}
.modal-footer .d-flex > div:last-child button {
    white-space: nowrap;
}

/* Deaktivierte Buttons für bereits hinzugefügte Tags */
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ausgewählte Autocomplete-Elemente */
.autocomplete-dropdown .list-group-item.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.autocomplete-dropdown .list-group-item.selected:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}