.history-tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    gap: 8px;
}

@media (max-width: 768px) {
    .history-tabs-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .history-type-select {
        width: 100%;
        order: 1;
    }
    
    .history-mode-toggle {
        width: 100%;
        order: 2;
    }
    
    .history-back-btn {
        width: 100%;
        order: 3;
    }
}

.history-type-select {
    flex: 1;
    padding: 12px 16px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.history-type-select:hover {
    background-color: #333;
    border-color: #555;
}

.history-type-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(143, 171, 143, 0.2);
}

.history-type-select option {
    background: #2a2a2a;
    color: #fff;
    padding: 8px;
}

.history-back-btn {
    flex-shrink: 0;
}

.history-mode-toggle {
    flex-shrink: 0;
}

.history-card .log-actions,
.history-card .image-delete-form {
    display: none;
}

.history-card.history-edit-mode .log-actions {
    display: flex;
    gap: 8px;
}

.history-card.history-edit-mode .log-action-btn {
    min-width: 80px;
    width: 80px;
    padding: 8px 16px;
    flex: 0 0 auto;
}

.history-card.history-edit-mode .image-delete-form {
    display: block;
}

