/* OLX Parser Styles */
.olx-parser-section {
    background: #f8f9fa;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 20px;
    transition: all 0.3s ease;
}

.olx-parser-section .add-listing-headline h3 {
    color: #f91942;
    font-size: 18px;
    margin-bottom: 20px;
}

.olx-parser-container {
    max-width: 100%;
}

.olx-url-input-group {
    margin-bottom: 15px;
    margin-top: 15px;
}

.olx-url-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group input[type="url"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.input-group input[type="url"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-group-append {
    display: flex;
    gap: 16px;
}

.input-group-append .button {
    border-radius: 0 6px 6px 0;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
}


.input-group-append .button:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.olx-parser-options {
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.olx-parser-progress {
    margin-bottom: 20px;
    padding: 15px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%;
    animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-text {
    font-size: 14px;
    color: #1976d2;
    font-weight: 500;
    text-align: center;
}

.olx-parser-results,
.olx-parser-error,
.olx-parser-success {
    margin-bottom: 15px;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert strong {
    font-weight: 600;
}

.button-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    background: #28a745;
    color: white;
    border: 1px solid #28a745;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.button-small:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-group input[type="url"] {
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .input-group-append .button {
        border-radius: 6px;
        width: 100%;
        justify-content: center;
    }
    
    .olx-parser-section {
        padding: 15px;
    }
}

/* Animation for success messages */
.olx-parser-success {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced focus states */
.olx-parser-section input:focus,
.olx-parser-section button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Improved accessibility */
.olx-parser-section {
    position: relative;
}

.olx-parser-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007bff, #28a745);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.olx-parser-section:hover::before {
    opacity: 0.1;
}

#tax-listing_category-panel {
    padding-bottom: 16px;
}
/* OLX Parser: фикс конфликта с темой для панели категорий */
#tax-listing_category-panel.panel-dropdown {
    float: none !important;
    display: block;
    width: 100%;
    clear: both;
    margin-top: 0;
}