/* Табы для формы создания лота */

.lot-form-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
    scrollbar-width: thin;
}

.lot-form-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-bottom: -2px;
}

.lot-form-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lot-form-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.lot-form-tab-icon {
    width: 18px;
    height: 18px;
}

.lot-form-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.lot-form-tab.active .lot-form-tab-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Контент табов */
.lot-form-tab-content {
    display: none !important;
}

.lot-form-tab-content.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопка импорта */
.import-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.import-trigger-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.import-trigger-btn svg {
    width: 18px;
    height: 18px;
}

/* Модальное окно импорта */
.import-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.import-modal.active {
    display: flex;
}

.import-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.import-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.import-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.import-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.import-modal-close:hover {
    color: var(--text-primary);
}

.import-modal-close svg {
    width: 24px;
    height: 24px;
}

.import-modal-body {
    padding: 24px;
}

.import-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Индикатор автосохранения */
.autosave-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: #22c55e;
    font-size: 12px;
    font-weight: 500;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.autosave-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.autosave-indicator svg {
    width: 14px;
    height: 14px;
}

/* Карточки черновиков */
.draft-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.draft-card:hover {
    border-color: var(--text-tertiary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.draft-card-header {
    margin-bottom: 12px;
}

.draft-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.draft-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.draft-card-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.draft-card-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.draft-card-actions {
    display: flex;
    gap: 8px;
}

/* Badge для количества черновиков */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .lot-form-tabs {
        gap: 4px;
    }
    
    .lot-form-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .lot-form-tab-icon {
        width: 16px;
        height: 16px;
    }
    
    .import-modal-content {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .draft-card-actions {
        flex-direction: column;
    }
    
    .draft-card-actions .lot-card-btn {
        width: 100%;
        justify-content: center;
    }
}
